+nvim lazygit keymap
This commit is contained in:
parent
e5796bf5ae
commit
160bb1013e
@ -844,7 +844,7 @@ require('lazy').setup({
|
|||||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||||
-- order to load the plugin when the command is run for the first time
|
-- order to load the plugin when the command is run for the first time
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
vim.kemap.set('g', '<leader>lg', '<cmd>LazyGit<cr>', { desc = 'LazyGit' })
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"olimorris/codecompanion.nvim",
|
"olimorris/codecompanion.nvim",
|
||||||
@ -898,7 +898,8 @@ require('lazy').setup({
|
|||||||
},
|
},
|
||||||
|
|
||||||
require('which-key').register {
|
require('which-key').register {
|
||||||
['<leader>n'] = { name = '[N]oice', _ = 'which_key_ignore' },
|
{ "<leader>n", group = "[N]oice" },
|
||||||
|
{ "<leader>n_", hidden = true },
|
||||||
},
|
},
|
||||||
vim.keymap.set('n', '<leader>nl', function()
|
vim.keymap.set('n', '<leader>nl', function()
|
||||||
require('noice').cmd 'last'
|
require('noice').cmd 'last'
|
||||||
@ -939,16 +940,6 @@ require('lazy').setup({
|
|||||||
{
|
{
|
||||||
'mbbill/undotree',
|
'mbbill/undotree',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'tpope/vim-fugitive',
|
|
||||||
config = function()
|
|
||||||
require('which-key').register {
|
|
||||||
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
|
|
||||||
}
|
|
||||||
vim.keymap.set('n', '<leader>gs', vim.cmd.Git, { desc = '[S]tatus' })
|
|
||||||
vim.keymap.set('n', '<leader>gl', ':Git log<CR>', { desc = '[L]og' })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
config = function()
|
config = function()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user