Many languange server start at once! #1846
Answered
by
mandaputtra
mandaputtra
asked this question in
Q&A
-
How do you configure your LSP right now? Seems like the editor picking up many things even the deno lsp are active, but I'm not using deno. My lsp settings: -- LSP CONFIGS
lvim.lsp.override = { 'typescript', 'typescriptreact', 'javascript', 'javascriptreact' }
-- Prettier configuration
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{
exe = "prettierd",
filetypes = {
"javascriptreact",
"javascript",
"typescriptreact",
"typescript",
"json",
"markdown",
},
},
}
-- ESLint
local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
{
exe = "eslint_d",
filetypes = {
"javascriptreact",
"javascript",
"typescriptreact",
"typescript",
"vue",
},
},
}
-- disable formatting in "tsserver" and "jsonls"
lvim.lsp.on_attach_callback = function(client, _)
if client.name == "tsserver" or client.name == "jsonls" then
client.resolved_capabilities.document_formatting = false
client.resolved_capabilities.document_range_formatting = false
end
end It detect all of lsp ~ |
Beta Was this translation helpful? Give feedback.
Answered by
mandaputtra
Oct 26, 2021
Replies: 1 comment
-
Welp latest update solve it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mandaputtra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welp latest update solve it.