neovim: replace tsserver with vtsls
This commit is contained in:
parent
f87d7581a0
commit
38622791b6
|
@ -34,7 +34,7 @@
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
|
|
||||||
# TypeScript
|
# TypeScript
|
||||||
typescript-language-server
|
(callPackage ../vtsls/package.nix { })
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
|
|
|
@ -10,16 +10,16 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
-- Configuration table of features provided by AstroLSP
|
-- Configuration table of features provided by AstroLSP
|
||||||
features = {
|
features = {
|
||||||
autoformat = true, -- enable or disable auto formatting on start
|
autoformat = true, -- enable or disable auto formatting on start
|
||||||
codelens = true, -- enable/disable codelens refresh on start
|
codelens = true, -- enable/disable codelens refresh on start
|
||||||
inlay_hints = false, -- enable/disable inlay hints on start
|
inlay_hints = false, -- enable/disable inlay hints on start
|
||||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
semantic_tokens = true, -- enable/disable semantic token highlighting
|
||||||
},
|
},
|
||||||
-- customize lsp formatting options
|
-- customize lsp formatting options
|
||||||
formatting = {
|
formatting = {
|
||||||
-- control auto formatting on save
|
-- control auto formatting on save
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
enabled = true, -- enable or disable format on save globally
|
enabled = true, -- enable or disable format on save globally
|
||||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||||
-- "go",
|
-- "go",
|
||||||
"c",
|
"c",
|
||||||
|
@ -63,7 +63,7 @@ return {
|
||||||
"svelte",
|
"svelte",
|
||||||
"taplo",
|
"taplo",
|
||||||
"volar",
|
"volar",
|
||||||
"tsserver",
|
"vtsls",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
},
|
},
|
||||||
-- customize language server configuration options passed to `lspconfig`
|
-- customize language server configuration options passed to `lspconfig`
|
||||||
|
@ -85,7 +85,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tsserver = {
|
vtsls = {
|
||||||
init_options = {
|
init_options = {
|
||||||
plugins = {
|
plugins = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue