add neoformat

This commit is contained in:
Guanran Wang 2024-02-20 20:22:00 +08:00
parent 378a2ae66e
commit fe810aa91b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -43,6 +43,18 @@ require("lazy").setup({
}, },
}, },
{
-- I didn't figure out how to use null-ls/none-ls...
"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" },
},
},
-- nvim-tree.lua -- nvim-tree.lua
{ {
"nvim-tree/nvim-tree.lua", "nvim-tree/nvim-tree.lua",