neovim: add cssls

This commit is contained in:
Dmitriy Pleshevskiy 2024-08-10 23:02:08 +03:00
parent 33c226e119
commit cb87dd9997
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -14,7 +14,9 @@ let inherit (lib.nix2lua) call; in
}; };
plugins.language-server.lspconfig.serverSettings = { plugins.language-server.lspconfig.serverSettings = {
# nix
nil_ls = { }; nil_ls = { };
# rust
rust_analyzer = { rust_analyzer = {
settings.rust-analyzer = { settings.rust-analyzer = {
"server.path" = "rust-analyzer"; "server.path" = "rust-analyzer";
@ -25,6 +27,7 @@ let inherit (lib.nix2lua) call; in
"cargo.autoreload" = true; "cargo.autoreload" = true;
}; };
}; };
# linter for javascript, typescript, vue
eslint = { eslint = {
on_attach = config.fn.lspconfig-eslint-on-attach.lambda; on_attach = config.fn.lspconfig-eslint-on-attach.lambda;
flags = { flags = {
@ -32,21 +35,29 @@ let inherit (lib.nix2lua) call; in
debounce_text_changes = 1000; debounce_text_changes = 1000;
}; };
}; };
# vue
volar = { volar = {
init_options = { init_options = {
typescript.tsdk = "./node_modules/typescript/lib"; 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 = { ltex = {
language = "en-US"; language = "en-US";
languageToolHttpServerUri = "http://localhost:8081"; 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 = { plugins.language-server.typescript-tools = {