mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nvim): fugitive toggle
This commit is contained in:
parent
978f150401
commit
df60482da3
5 changed files with 32 additions and 17 deletions
|
|
@ -1 +1,11 @@
|
|||
vim.keymap.set('n', "<leader>G", vim.cmd.Git, { desc = "open fugitive" })
|
||||
vim.keymap.set('n', "<leader>g",
|
||||
":Git<CR><Down><Down><Down><Down><Down>",
|
||||
{ desc = "open fugitive" }
|
||||
)
|
||||
|
||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||
pattern = { "fugitive" },
|
||||
callback = function()
|
||||
vim.keymap.set("n", "<leader>g", ":q<CR>", { desc = "close fugitive", buffer = true })
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue