1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 10:24:47 +01:00
Files
dotfiles/.config/nvim/lua/plugins/conform.lua

26 lines
513 B
Lua

return {
-- improved refactoring
"stevearc/conform.nvim",
keys = {
{
"<F8>",
function()
require("conform").format({ async = true, lsp_fallback = true })
end,
desc = "LSP: format",
},
},
opts = {
formatters_by_ft = {
lua = { "stylua" },
markdown = { "mdformat" },
python = { "isort", "yapf" },
sh = { "shfmt" },
bash = { "shfmt" },
zsh = { "shfmt" },
tex = { "latexindent" },
yaml = { "yamlfmt" },
},
},
}