feat(nvim): remove language servers with slow startup time

main
mandlm 2024-07-29 13:28:50 +02:00
parent 4d111dd744
commit b0f97eb511
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
2 changed files with 0 additions and 22 deletions

View File

@ -98,17 +98,11 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
# language servers # language servers
lua-language-server lua-language-server
terraform-ls
tflint
bash-language-server bash-language-server
prettierd prettierd
nodePackages.yaml-language-server nodePackages.yaml-language-server
nodePackages.eslint_d
nodePackages.typescript-language-server
nodePackages.typescript
nodePackages.dockerfile-language-server-nodejs nodePackages.dockerfile-language-server-nodejs
nodePackages.vscode-langservers-extracted nodePackages.vscode-langservers-extracted
vscode-extensions.vue.volar
lldb lldb
vscode-extensions.vadimcn.vscode-lldb vscode-extensions.vadimcn.vscode-lldb
marksman marksman
@ -123,7 +117,6 @@
autopep8 autopep8
python-lsp-server python-lsp-server
])) ]))
pyright
#clipboard #clipboard
xclip xclip

View File

@ -9,9 +9,6 @@ local on_attach = function(client, bufnr)
vim.lsp.buf.format({ vim.lsp.buf.format({
timeout_ms = 3000, timeout_ms = 3000,
async = false, async = false,
filter = function(formatter)
return formatter.name ~= "tsserver" and formatter.name ~= "volar"
end
}) })
end end
@ -73,7 +70,6 @@ local servers = {
["clangd"] = {}, ["clangd"] = {},
["cmake"] = {}, ["cmake"] = {},
["dockerls"] = {}, ["dockerls"] = {},
["eslint"] = {},
["html"] = {}, ["html"] = {},
["jsonls"] = {}, ["jsonls"] = {},
["lua_ls"] = { ["lua_ls"] = {
@ -117,11 +113,7 @@ local servers = {
} }
} }
}, },
["pyright"] = {},
["terraformls"] = {},
["texlab"] = {}, ["texlab"] = {},
["tflint"] = {},
["tsserver"] = {},
["yamlls"] = { ["yamlls"] = {
yaml = { yaml = {
keyOrdering = false keyOrdering = false
@ -192,10 +184,3 @@ for type, icon in pairs(diagnostics_signs) do
local hl = "DiagnosticSign" .. type local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end end
-- setup volar
lspconfig["volar"].setup({
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },
on_attach = on_attach,
capabilities = capabilities,
})