20250712.1752273923
This commit is contained in:
parent
4d618ad80f
commit
9fb6c83f2a
4 changed files with 22 additions and 0 deletions
|
@ -4,6 +4,7 @@ return {
|
|||
log_level = vim.log.levels.DEBUG,
|
||||
icon = "", --'▎',
|
||||
formatters_by_ft = {
|
||||
awk = { "gawk_fmt" },
|
||||
lua = { "stylua" },
|
||||
python = { "ruff_format", "ruff_fix", "isort" },
|
||||
javascript = { "biome" },
|
||||
|
@ -18,6 +19,19 @@ return {
|
|||
htmldjango = { "prettier" },
|
||||
["*"] = { "trim_whitespace", "codespell" },
|
||||
},
|
||||
formatters = {
|
||||
gawk_fmt = {
|
||||
command = "gawk",
|
||||
args = function(ctx)
|
||||
return {
|
||||
"-f",
|
||||
"$FILENAME",
|
||||
"-o-",
|
||||
}
|
||||
end,
|
||||
stdin = true,
|
||||
},
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 1000,
|
||||
lsp_fallback = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue