moves back to ts_ls and adds css, html support

This commit is contained in:
Dennis Schoepf 2026-02-11 23:01:20 +01:00
parent 6b525de32f
commit 615a962eaf
3 changed files with 15 additions and 40 deletions

View file

@ -23,6 +23,5 @@
./statusline.nix
./keybindings.nix
./ai.nix
./typescript.nix
];
}

View file

@ -17,11 +17,26 @@
package = pkgs.nil;
packageFallback = true;
};
ts_ls = {
enable = true;
package = pkgs.typescript-language-server;
packageFallback = true;
};
jsonls = {
enable = true;
package = pkgs.vscode-langservers-extracted;
packageFallback = true;
};
cssls = {
enable = true;
package = pkgs.vscode-langservers-extracted;
packageFallback = true;
};
html = {
enable = true;
package = pkgs.vscode-langservers-extracted;
packageFallback = true;
};
astro = {
enable = true;
package = pkgs.astro-language-server;

View file

@ -1,39 +0,0 @@
{ pkgs, lib, ... }:
{
extraPackages = with pkgs; [
nodejs
typescript
];
plugins.typescript-tools = {
enable = true;
settings = {
jsx_close_tag.enable = true;
tsserver_file_preferences = {
__raw = ''
function(ft)
return {
includeInlayParameterNameHints = "all",
includeCompletionsForModuleExports = true,
quotePreference = "auto",
}
end
'';
};
tsserver_format_options = {
__raw = ''
function(ft)
return {
allowIncompleteCompletions = false,
allowRenameOfImportPath = false,
}
end
'';
};
tsserver_plugins = [
"@styled/typescript-styled-plugin"
];
};
};
}