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
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue