fix: setup typescript tools and react formatting properly

This commit is contained in:
Youwen Wu 2024-10-17 01:10:32 -07:00
parent 9bed7a28d7
commit ed85611e1f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 9 additions and 2 deletions

View file

@ -54,13 +54,14 @@ return {
rust = { "rustfmt" },
javascript = { "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" },
haskell = { "fourmolu", "ormolu", stop_after_first = true },
json = { "prettierd", "prettier", stop_after_first = true },
toml = { "taplo", stop_after_first = true },
yaml = { "prettierd", "prettier", stop_after_first = true },
typst = { "typstyle" },
tsx = { "prettier" },
svelte = { "prettier" },
},
})

View file

@ -238,7 +238,13 @@ return {
},
{ "rustaceanvim" },
{ "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",
event = "LspAttach",