added xml formatter
This commit is contained in:
parent
92663adae6
commit
f07fb6cced
|
@ -8,11 +8,23 @@ require('conform').setup {
|
||||||
javascriptreact = { { 'prettier' } },
|
javascriptreact = { { 'prettier' } },
|
||||||
typescriptreact = { { 'prettier' } },
|
typescriptreact = { { 'prettier' } },
|
||||||
typescript = { { 'prettier' } },
|
typescript = { { 'prettier' } },
|
||||||
|
xml = { 'prettier', 'xmlformat' },
|
||||||
html = { { 'prettier' } },
|
html = { { 'prettier' } },
|
||||||
go = { { 'gofumpt', 'goimports-reviser', 'golines' } },
|
go = { { 'gofumpt', 'goimports-reviser', 'golines' } },
|
||||||
java = { 'google-java-format' },
|
java = { 'google-java-format' },
|
||||||
templ = { 'templ' },
|
templ = { 'templ' },
|
||||||
},
|
},
|
||||||
|
format_on_save = {
|
||||||
|
-- I recommend these options. See :help conform.format for details.
|
||||||
|
lsp_fallback = true,
|
||||||
|
timeout_ms = 500,
|
||||||
|
},
|
||||||
|
-- If this is set, Conform will run the formatter asynchronously after save.
|
||||||
|
-- It will pass the table to conform.format().
|
||||||
|
-- This can also be a function that returns the table.
|
||||||
|
format_after_save = {
|
||||||
|
lsp_fallback = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
|
|
Loading…
Reference in New Issue