feat(nvim): remove language servers with slow startup time
This commit is contained in:
parent
4d111dd744
commit
b0f97eb511
@ -98,17 +98,11 @@
|
||||
extraPackages = with pkgs; [
|
||||
# language servers
|
||||
lua-language-server
|
||||
terraform-ls
|
||||
tflint
|
||||
bash-language-server
|
||||
prettierd
|
||||
nodePackages.yaml-language-server
|
||||
nodePackages.eslint_d
|
||||
nodePackages.typescript-language-server
|
||||
nodePackages.typescript
|
||||
nodePackages.dockerfile-language-server-nodejs
|
||||
nodePackages.vscode-langservers-extracted
|
||||
vscode-extensions.vue.volar
|
||||
lldb
|
||||
vscode-extensions.vadimcn.vscode-lldb
|
||||
marksman
|
||||
@ -123,7 +117,6 @@
|
||||
autopep8
|
||||
python-lsp-server
|
||||
]))
|
||||
pyright
|
||||
|
||||
#clipboard
|
||||
xclip
|
||||
|
@ -9,9 +9,6 @@ local on_attach = function(client, bufnr)
|
||||
vim.lsp.buf.format({
|
||||
timeout_ms = 3000,
|
||||
async = false,
|
||||
filter = function(formatter)
|
||||
return formatter.name ~= "tsserver" and formatter.name ~= "volar"
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
@ -73,7 +70,6 @@ local servers = {
|
||||
["clangd"] = {},
|
||||
["cmake"] = {},
|
||||
["dockerls"] = {},
|
||||
["eslint"] = {},
|
||||
["html"] = {},
|
||||
["jsonls"] = {},
|
||||
["lua_ls"] = {
|
||||
@ -117,11 +113,7 @@ local servers = {
|
||||
}
|
||||
}
|
||||
},
|
||||
["pyright"] = {},
|
||||
["terraformls"] = {},
|
||||
["texlab"] = {},
|
||||
["tflint"] = {},
|
||||
["tsserver"] = {},
|
||||
["yamlls"] = {
|
||||
yaml = {
|
||||
keyOrdering = false
|
||||
@ -192,10 +184,3 @@ for type, icon in pairs(diagnostics_signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
-- setup volar
|
||||
lspconfig["volar"].setup({
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
Reference in New Issue
Block a user