Added node support

This commit is contained in:
Fred Drake
2024-10-05 21:45:06 -04:00
parent ee5b6054c1
commit 3034aa64aa
6 changed files with 222 additions and 129 deletions
+52
View File
@@ -0,0 +1,52 @@
{
plugins = {
conform-nvim = {
settings = {
formatters_by_ft.javascript = ["prettier"];
formatters_by_ft.typescript = ["prettier"];
formatters_by_ft.javascriptreact = ["prettier"];
formatters_by_ft.typescriptreact = ["prettier"];
};
};
lsp.servers.ts-ls = {
enable = true;
filetypes = [
"javascript"
"javascriptreact"
"typescript"
"typescriptreact"
];
extraOptions = {
settings = {
javascript = {
inlayHints = {
includeInlayEnumMemberValueHints = true;
includeInlayFunctionLikeReturnTypeHints = true;
includeInlayFunctionParameterTypeHints = true;
includeInlayParameterNameHints = "all";
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
includeInlayPropertyDeclarationTypeHints = true;
includeInlayVariableTypeHints = true;
};
};
typescript = {
inlayHints = {
includeInlayEnumMemberValueHints = true;
includeInlayFunctionLikeReturnTypeHints = true;
includeInlayFunctionParameterTypeHints = true;
includeInlayParameterNameHints = "all";
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
includeInlayPropertyDeclarationTypeHints = true;
includeInlayVariableTypeHints = true;
};
};
};
};
};
lsp.servers.eslint.enable = true;
none-ls.sources.formatting.prettier = {
enable = true;
disableTsServerFormatter = false;
};
};
}