1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
return {
{
'stevearc/conform.nvim',
opts = {
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
-- You can customize some of the format options for the filetype (:help conform.format)
rust = { "rustfmt", lsp_format = "fallback" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
-- latex
tex = { "tex-fmt" },
-- sql
sql = { "sqruff" },
},
}
},
}
|