35 lines
812 B
Nix
35 lines
812 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
plugins.typescript-tools = {
|
|
enable = true;
|
|
extraPackages = [ pkgs.typescript-language-server ];
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|