Add formatters for lua and yaml

This commit is contained in:
Valeriy Filippov
2026-03-11 10:06:28 +03:00
parent c4a77e9d1b
commit 27663861dc
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
-- https://github.com/stevearc/conform.nvim
return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
lua = { "stylua" },
yaml = { "prettierd", "prettier", stop_after_first = true },
},
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
},
}