chore: add lsp fallback to some formatters
This commit is contained in:
parent
70276615e1
commit
5896233234
1 changed files with 2 additions and 2 deletions
|
@ -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,7 +63,7 @@ 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" },
|
||||
|
|
Loading…
Reference in a new issue