refactor(nvim): use lua api for neogit
This commit is contained in:
parent
0f81ff7cd1
commit
694bb0aba2
@ -167,7 +167,7 @@ wk.register({
|
|||||||
name = "Git",
|
name = "Git",
|
||||||
},
|
},
|
||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
vim.keymap.set("n", "<leader>gg", ":Neogit<CR>", { silent = true, desc = "Neogit: Open" })
|
vim.keymap.set("n", "<leader>gg", require('neogit').open, { silent = true, desc = "Neogit: Open" })
|
||||||
|
|
||||||
-- Gitsigns Mappings
|
-- Gitsigns Mappings
|
||||||
vim.keymap.set("n", "]g", "<cmd>Gitsigns next_hunk<CR><CR>", { silent = true, desc = "Gitsigns: Next Hunk" })
|
vim.keymap.set("n", "]g", "<cmd>Gitsigns next_hunk<CR><CR>", { silent = true, desc = "Gitsigns: Next Hunk" })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user