Merge branch 'kdheepak:main' into feat/resize

This commit is contained in:
Chen Asraf
2024-05-12 02:55:08 +03:00
committed by GitHub
2 changed files with 18 additions and 2 deletions

View File

@@ -35,10 +35,22 @@ Install using [`lazy.nvim`](https://github.com/folke/lazy.nvim):
require("lazy").setup({
{
"kdheepak/lazygit.nvim",
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
}
},
})
```

View File

@@ -34,9 +34,13 @@ endif
" if lazygit_use_custom_config_file_path is set to 1 the
" lazygit_config_file_path option will be evaluated
let g:lazygit_use_custom_config_file_path = 0
if !exists('g:lazygit_use_custom_config_file_path')
let g:lazygit_use_custom_config_file_path = 0
endif
" path to custom config file
let g:lazygit_config_file_path = ''
if !exists('g:lazygit_config_file_path')
let g:lazygit_config_file_path = ''
endif
command! LazyGit lua require'lazygit'.lazygit()