mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-20 08:32:58 +00:00
feat: nixvim improvements
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user