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 = {
# 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 = {