From f2bca2ac0ed5a26ea73d393099bdee73c1363d8f Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 4 Sep 2024 21:15:31 -0300 Subject: [PATCH] neovim: replace tsserver with vtsls --- programs/neovim/default.nix | 2 +- programs/neovim/lua/plugins/astrolsp.lua | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/programs/neovim/default.nix b/programs/neovim/default.nix index c078352..7005576 100644 --- a/programs/neovim/default.nix +++ b/programs/neovim/default.nix @@ -34,7 +34,7 @@ nixfmt-rfc-style # TypeScript - typescript-language-server + (callPackage ../vtsls/package.nix { }) # Rust rust-analyzer diff --git a/programs/neovim/lua/plugins/astrolsp.lua b/programs/neovim/lua/plugins/astrolsp.lua index afd011e..f01a634 100644 --- a/programs/neovim/lua/plugins/astrolsp.lua +++ b/programs/neovim/lua/plugins/astrolsp.lua @@ -10,16 +10,16 @@ return { opts = { -- Configuration table of features provided by AstroLSP features = { - autoformat = true, -- enable or disable auto formatting on start - codelens = true, -- enable/disable codelens refresh on start - inlay_hints = false, -- enable/disable inlay hints on start + autoformat = true, -- enable or disable auto formatting on start + codelens = true, -- enable/disable codelens refresh on start + inlay_hints = false, -- enable/disable inlay hints on start semantic_tokens = true, -- enable/disable semantic token highlighting }, -- customize lsp formatting options formatting = { -- control auto formatting 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 -- "go", "c", @@ -63,7 +63,7 @@ return { "svelte", "taplo", "volar", - "tsserver", + "vtsls", "yamlls", }, -- customize language server configuration options passed to `lspconfig` @@ -85,7 +85,7 @@ return { }, }, }, - tsserver = { + vtsls = { init_options = { plugins = { {