From 6dfa641a90475d4717412f7059707fe1e26b8bd6 Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 22 Jul 2024 12:44:34 +0200 Subject: [PATCH] Remove typst stuff --- lua/config/lspconfig.lua | 30 ------------------------------ lua/plugins.lua | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/lua/config/lspconfig.lua b/lua/config/lspconfig.lua index 348a56f..29ca1fa 100644 --- a/lua/config/lspconfig.lua +++ b/lua/config/lspconfig.lua @@ -33,34 +33,6 @@ if not configs.elixirls then } end --- typst-lsp - -if not configs.typst_lsp then - configs.typst_lsp = { - default_config = { - cmd = { 'typst-lsp' }, - filetypes = { 'typst' }, - single_file_support = true, - root_dir = function(fname) - return nvim_lsp.util.find_git_ancestor(fname) - end, - }, - docs = { - description = [[ -https://github.com/nvarner/typst-lsp - -Language server for Typst. - ]], - }, - } -end - -require 'lspconfig'.typst_lsp.setup { - settings = { - exportPdf = "onSave", - } -} - -- keybindings local on_attach = function(client, bufrn) @@ -115,10 +87,8 @@ local servers = { 'tsserver', 'elixirls', 'dartls', - -- 'denols', 'clangd', 'zls', - 'typst-lsp', } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { diff --git a/lua/plugins.lua b/lua/plugins.lua index 18a7032..7397ff4 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -151,7 +151,7 @@ local function init() -- typst use 'kaarmu/typst.vim' - use 'nvarner/typst-lsp' + --use 'nvarner/typst-lsp' end local plugins = setmetatable({}, {