Compare commits

...

2 commits

Author SHA1 Message Date
5896233234
chore: add lsp fallback to some formatters 2024-11-19 16:03:35 -08:00
70276615e1
feat: add c/cpp formatter 2024-11-19 16:03:33 -08:00

View file

@ -51,7 +51,7 @@ return {
formatters_by_ft = {
lua = { "stylua" },
python = { "black" },
rust = { "rustfmt" },
rust = { "rustfmt", lsp_format = "fallback" },
javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true },
typescriptreact = { "prettierd", "prettier", stop_after_first = true },
@ -63,8 +63,10 @@ return {
toml = { "taplo", stop_after_first = true },
yaml = { "prettierd", "prettier", stop_after_first = true },
typst = { "typstyle" },
svelte = { "prettier" },
svelte = { "prettier", lsp_format = "fallback" },
tex = { "latexindent" },
cpp = { "clang-format", lsp_format = "fallback" },
c = { "clang-format", lsp_format = "fallback" },
},
})