feat(nvim): support javascript/typescript LSP, lint, and formatting
This commit is contained in:
parent
04768bb6c9
commit
e6aaf1627c
@ -20,5 +20,7 @@
|
||||
ripgrep
|
||||
gnumake
|
||||
gcc
|
||||
eslint_d
|
||||
prettierd
|
||||
];
|
||||
}
|
||||
|
@ -6,6 +6,10 @@ return {
|
||||
---@type lspconfig.options
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
servers = {
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
tsserver = {},
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
eslint = {},
|
||||
nil_ls = {},
|
||||
},
|
||||
},
|
||||
@ -49,6 +53,10 @@ return {
|
||||
---@type table<string, conform.FormatterUnit[]>
|
||||
formatters_by_ft = {
|
||||
nix = { "alejandra" },
|
||||
javascript = { { "prettierd", "prettier" } },
|
||||
javascriptreact = { { "prettierd", "prettier" } },
|
||||
typescript = { { "prettierd", "prettier" } },
|
||||
typescriptreact = { { "prettierd", "prettier" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user