New: Conform for HTML, JS, VUE formating
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
-- Conform setup for Prettier / other formatters
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
javascript = { "prettier" },
|
||||
javascriptreact = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
vue = { "prettier" },
|
||||
html = { "prettier" },
|
||||
css = { "prettier" },
|
||||
json = { "prettier" },
|
||||
markdown = { "prettier" },
|
||||
lua = { "stylua" },
|
||||
c = { "clang-format" },
|
||||
cpp = { "clang-format" },
|
||||
cs = { "csharpier" },
|
||||
python = { "black" },
|
||||
go = { "gofmt" },
|
||||
rust = { "rustfmt" },
|
||||
sh = { "shfmt" },
|
||||
},
|
||||
format_on_save = false, -- keep manual control
|
||||
})
|
||||
Reference in New Issue
Block a user