neoformat: add basic formatting
This commit is contained in:
parent
97d389052e
commit
6c4e1d6777
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
return {
|
||||
"sbdchd/neoformat",
|
||||
init = function()
|
||||
-- Basic formatting
|
||||
vim.g.neoformat_basic_format_retab = 1
|
||||
vim.g.neoformat_basic_format_trim = 1
|
||||
|
||||
-- Prefer Alejandra for Nix files
|
||||
vim.g.neoformat_enabled_nix = { "alejandra" }
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue