nvim/lua/plugins/neoformat.lua

11 lines
229 B
Lua
Raw Normal View History

2024-02-21 04:09:18 +00:00
return {
"sbdchd/neoformat",
init = function()
-- Prefer Alejandra for Nix files
vim.g.neoformat_enabled_nix = { "alejandra" }
end,
keys = {
{ "<Space>lf", "<cmd>Neoformat<CR>", desc = "Format file" },
},
}