diff --git a/neovim/configs/language-server.nix b/neovim/configs/language-server.nix index 85b70f5..61c48a2 100644 --- a/neovim/configs/language-server.nix +++ b/neovim/configs/language-server.nix @@ -14,7 +14,9 @@ let inherit (lib.nix2lua) call; in }; plugins.language-server.lspconfig.serverSettings = { + # nix nil_ls = { }; + # rust rust_analyzer = { settings.rust-analyzer = { "server.path" = "rust-analyzer"; @@ -25,6 +27,7 @@ let inherit (lib.nix2lua) call; in "cargo.autoreload" = true; }; }; + # linter for javascript, typescript, vue eslint = { on_attach = config.fn.lspconfig-eslint-on-attach.lambda; flags = { @@ -32,21 +35,29 @@ let inherit (lib.nix2lua) call; in debounce_text_changes = 1000; }; }; + # vue volar = { init_options = { typescript.tsdk = "./node_modules/typescript/lib"; }; }; + # python + pylsp = { }; + # typescript, javascript + denols = { + root_dir = call "${config.plugin.nvim-lspconfig.varName}.util.root_pattern" [ "deno.json" "deno.jsonc" ]; + }; + # java + jdtls = { cmd = [ "jdtls" ]; }; + # json + jsonls = { }; + # css, scss, less + cssls = {}; + # Grammar/Spell Checker ltex = { language = "en-US"; languageToolHttpServerUri = "http://localhost:8081"; }; - pylsp = { }; - denols = { - root_dir = call "${config.plugin.nvim-lspconfig.varName}.util.root_pattern" [ "deno.json" "deno.jsonc" ]; - }; - jdtls = { cmd = [ "jdtls" ]; }; - jsonls = { }; }; plugins.language-server.typescript-tools = {