feat: Moved to new config syntax for loading LSPs. Removed angularls and
tsls. Added vtsls.
This commit is contained in:
parent
9feb515943
commit
8443ea0d20
|
|
@ -27,34 +27,18 @@ vim.lsp.config("lua_ls", {
|
|||
}
|
||||
})
|
||||
|
||||
--vim.lsp.enable("clangd")
|
||||
vim.lsp.enable("clangd")
|
||||
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
vim.lsp.config("rust_analyzer", {
|
||||
cmd = { "~/.local/share/nvim/mason/bin/rust-analyzer" },
|
||||
})
|
||||
|
||||
vim.lsp.enable("pyright")
|
||||
vim.lsp.config("pyright", {
|
||||
cmd = { "~/.local/share/nvim/mason/bin/pyright-langserver", "--stdio" },
|
||||
})
|
||||
|
||||
vim.lsp.enable("html")
|
||||
vim.lsp.config("html", {
|
||||
cmd = { "~/.local/share/nvim/mason/packages/html-lsp/node_modules/.bin/vscode-html-language-server", "--stdio" },
|
||||
})
|
||||
|
||||
--vim.lsp.enable("angularls")
|
||||
--vim.lsp.config("angularls", {
|
||||
-- cmd = { "ngserver", "--stdio", "--tsProbeLocations", "../..,?/node_modules", "--ngProbeLocations", "../../@angular/language-server/node_modules,?/node_modules/@angular/language-server/node_modules", "--angularCoreVersion", "" },
|
||||
--})
|
||||
vim.lsp.enable("vtsls")
|
||||
|
||||
vim.lsp.enable("ts_ls")
|
||||
vim.lsp.config("ts_ls", {
|
||||
cmd = { "~/.local/share/nvim/mason/packages/typescript-language-server/node_modules/typescript-language-server/lib/cli.mjs", "--stdio" },
|
||||
})
|
||||
vim.lsp.enable("svelte")
|
||||
|
||||
vim.lsp.enable("tailwindcss")
|
||||
|
||||
vim.lsp.enable("jdtls")
|
||||
vim.lsp.config("jdtls", {
|
||||
cmd = { vim.fn.expand("~/.local/share/nvim/mason/bin/jdtls") },
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue