feat(neovim): add code formatter plugin

This commit is contained in:
Yorick Barbanneau 2025-01-02 11:52:13 +01:00
parent 9f16f36b8b
commit 535e2391fe
2 changed files with 16 additions and 0 deletions

View file

@ -80,6 +80,11 @@ in
cmp-path
cmp-cmdline
cmp_luasnip
{
plugin = conform-nvim;
type = "lua";
config = (builtins.readFile ./files/conform.lua);
}
{
plugin = fzf-lua;
type = "lua";

View file

@ -0,0 +1,11 @@
require("conform").setup({
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "never",
},
formatters_by_ft = {
yaml = {"yamlfmt"},
["_"] = { "trim_whitespace" },
}
})