nix-config/modules/nixvim/typescript.nix
2026-02-11 22:47:41 +01:00

39 lines
823 B
Nix

{ 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"
];
};
};
}