nvim/lua/plugins/conform.lua
Maciej Lebiest 4653116fac
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 8m52s
Build neovim image / build-neovim-arm64 (push) Successful in 10m44s
Build neovim image / update-images-manifest (push) Successful in 18s
add conform with yamlfmt
2024-12-17 16:10:37 +01:00

26 lines
745 B
Lua

return {
-- This will provide type hinting with LuaLS
---@module "conform"
---@type conform.setupOpts
opts = {
-- Define your formatters
formatters_by_ft = {
yaml = { "yamlfmt" },
--lua = { "stylua" },
--python = { "isort", "black" },
--javascript = { "prettierd", "prettier", stop_after_first = true },
},
-- Set default options
default_format_opts = {
lsp_format = "fallback",
},
-- Set up format-on-save
--format_on_save = { timeout_ms = 500 },
-- Customize formatters
formatters = {
shfmt = {
prepend_args = { "-i", "2" },
},
},
}
}