moves back to ts_ls and adds css, html support
This commit is contained in:
parent
6b525de32f
commit
615a962eaf
3 changed files with 15 additions and 40 deletions
|
|
@ -23,6 +23,5 @@
|
||||||
./statusline.nix
|
./statusline.nix
|
||||||
./keybindings.nix
|
./keybindings.nix
|
||||||
./ai.nix
|
./ai.nix
|
||||||
./typescript.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,26 @@
|
||||||
package = pkgs.nil;
|
package = pkgs.nil;
|
||||||
packageFallback = true;
|
packageFallback = true;
|
||||||
};
|
};
|
||||||
|
ts_ls = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.typescript-language-server;
|
||||||
|
packageFallback = true;
|
||||||
|
};
|
||||||
jsonls = {
|
jsonls = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscode-langservers-extracted;
|
package = pkgs.vscode-langservers-extracted;
|
||||||
packageFallback = true;
|
packageFallback = true;
|
||||||
};
|
};
|
||||||
|
cssls = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscode-langservers-extracted;
|
||||||
|
packageFallback = true;
|
||||||
|
};
|
||||||
|
html = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscode-langservers-extracted;
|
||||||
|
packageFallback = true;
|
||||||
|
};
|
||||||
astro = {
|
astro = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.astro-language-server;
|
package = pkgs.astro-language-server;
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue