feat(nvim): remove language servers with slow startup time
This commit is contained in:
parent
4d111dd744
commit
b0f97eb511
2 changed files with 0 additions and 22 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in a new issue