docs: Update Lazy install instructions (#129)

This commit is contained in:
Mainak Mandal
2024-10-01 13:45:16 +02:00
committed by GitHub
parent bd36b40814
commit 56760339a8

View File

@@ -34,6 +34,7 @@ Install using [`lazy.nvim`](https://github.com/folke/lazy.nvim):
-- nvim v0.8.0 -- nvim v0.8.0
return { return {
"kdheepak/lazygit.nvim", "kdheepak/lazygit.nvim",
lazy = true,
cmd = { cmd = {
"LazyGit", "LazyGit",
"LazyGitConfig", "LazyGitConfig",
@@ -226,18 +227,25 @@ Install using [`lazy.nvim`](https://github.com/folke/lazy.nvim):
```lua ```lua
-- nvim v0.8.0 -- nvim v0.8.0
require("lazy").setup({
{ {
"kdheepak/lazygit.nvim", "kdheepak/lazygit.nvim",
lazy = false,
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = { dependencies = {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim" "nvim-lua/plenary.nvim",
}, },
config = function() config = function()
require("telescope").load_extension("lazygit") require("telescope").load_extension("lazygit")
end, end,
}, }
})
``` ```
Lazy loading `lazygit.nvim` for telescope functionality is not supported. Open an issue if you wish to have this feature. Lazy loading `lazygit.nvim` for telescope functionality is not supported. Open an issue if you wish to have this feature.