add lazygit
This commit is contained in:
parent
250a3fb84c
commit
b4aa0a886b
11
init.lua
11
init.lua
|
@ -73,8 +73,9 @@ require('lazy').setup({
|
||||||
"github/copilot.vim",
|
"github/copilot.vim",
|
||||||
|
|
||||||
-- Git related plugins
|
-- Git related plugins
|
||||||
'tpope/vim-fugitive',
|
-- 'tpope/vim-fugitive',
|
||||||
'tpope/vim-rhubarb',
|
-- 'tpope/vim-rhubarb',
|
||||||
|
"kdheepak/lazygit.nvim",
|
||||||
|
|
||||||
-- Detect tabstop and shiftwidth automatically
|
-- Detect tabstop and shiftwidth automatically
|
||||||
'tpope/vim-sleuth',
|
'tpope/vim-sleuth',
|
||||||
|
@ -319,6 +320,12 @@ vim.keymap.set('i', '<C-J>', 'copilot#Accept("<CR>")', {
|
||||||
replace_keycodes = false
|
replace_keycodes = false
|
||||||
})
|
})
|
||||||
vim.g.copilot_no_tab_map = true
|
vim.g.copilot_no_tab_map = true
|
||||||
|
|
||||||
|
-- keymap for opening lazygit
|
||||||
|
vim.keymap.set('n', '<leader>g', ':LazyGit<CR>', { desc = 'Open lazygit' })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Keymaps for better default experience
|
-- Keymaps for better default experience
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
||||||
|
|
Loading…
Reference in New Issue