moves to typescript tools
This commit is contained in:
parent
22bde2e74c
commit
50ac9a4678
2 changed files with 32 additions and 5 deletions
|
|
@ -17,11 +17,6 @@
|
|||
package = pkgs.nil;
|
||||
packageFallback = true;
|
||||
};
|
||||
ts_ls = {
|
||||
enable = true;
|
||||
package = pkgs.typescript-language-server;
|
||||
packageFallback = true;
|
||||
};
|
||||
jsonls = {
|
||||
enable = true;
|
||||
package = pkgs.vscode-langservers-extracted;
|
||||
|
|
|
|||
32
modules/nixvim/typescript.nix
Normal file
32
modules/nixvim/typescript.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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