fix: setup typescript tools and react formatting properly
This commit is contained in:
parent
9bed7a28d7
commit
ed85611e1f
2 changed files with 9 additions and 2 deletions
|
@ -54,13 +54,14 @@ return {
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
typescript = { "prettierd", "prettier", stop_after_first = true },
|
typescript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
|
typescriptreact = { "prettierd", "prettier", stop_after_first = true },
|
||||||
|
jypescriptreact = { "prettierd", "prettier", stop_after_first = true },
|
||||||
nix = { "nixfmt" },
|
nix = { "nixfmt" },
|
||||||
haskell = { "fourmolu", "ormolu", stop_after_first = true },
|
haskell = { "fourmolu", "ormolu", stop_after_first = true },
|
||||||
json = { "prettierd", "prettier", stop_after_first = true },
|
json = { "prettierd", "prettier", stop_after_first = true },
|
||||||
toml = { "taplo", stop_after_first = true },
|
toml = { "taplo", stop_after_first = true },
|
||||||
yaml = { "prettierd", "prettier", stop_after_first = true },
|
yaml = { "prettierd", "prettier", stop_after_first = true },
|
||||||
typst = { "typstyle" },
|
typst = { "typstyle" },
|
||||||
tsx = { "prettier" },
|
|
||||||
svelte = { "prettier" },
|
svelte = { "prettier" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -238,7 +238,13 @@ return {
|
||||||
},
|
},
|
||||||
{ "rustaceanvim" },
|
{ "rustaceanvim" },
|
||||||
{ "haskell-tools.nvim" },
|
{ "haskell-tools.nvim" },
|
||||||
{ "typescript-tools.nvim" },
|
{
|
||||||
|
"typescript-tools.nvim",
|
||||||
|
filetypes = { "typescriptreact", "typescript", "javascript", "svelte", "javascriptreact" },
|
||||||
|
after = function()
|
||||||
|
require("typescript-tools").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"lsp_lines.nvim",
|
"lsp_lines.nvim",
|
||||||
event = "LspAttach",
|
event = "LspAttach",
|
||||||
|
|
Loading…
Reference in a new issue