feat: nixvim improvements

This commit is contained in:
2024-04-01 11:20:03 +02:00
parent 599ec02f15
commit 22e959865f
9 changed files with 32 additions and 859 deletions

View File

@@ -57,3 +57,14 @@ function _lazygit_toggle()
end
vim.api.nvim_set_keymap("n", "<leader>g", "<cmd>lua _lazygit_toggle()<CR>", { noremap = true, silent = true })
vim.api.nvim_create_user_command("ConformToggle", function(args)
if args.bang then
vim.b.disable_autoformat = not vim.b.disable_autoformat
else
vim.g.disable_autoformat = not vim.g.disable_autoformat
end
end, {
desc = "Disable autoformat-on-save",
bang = true,
})