feat(neovim): add code formatter plugin
This commit is contained in:
parent
9f16f36b8b
commit
535e2391fe
2 changed files with 16 additions and 0 deletions
11
modules/home-manager/cli/neovim/files/conform.lua
Normal file
11
modules/home-manager/cli/neovim/files/conform.lua
Normal 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" },
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue