docs: Update README.md

This commit is contained in:
Dheepak Krishnamurthy
2022-03-06 13:53:25 -07:00
parent ef42be423d
commit ca8ea75e5a

View File

@@ -121,7 +121,21 @@ Instead, you can open it with telescope.
**How to use** **How to use**
To load the telescope extension you have to add this line to your configuration: Install the plugin using:
```
use({
"nvim-telescope/telescope.nvim",
requires = { { "nvim-lua/plenary.nvim" }, { "kdheepak/lazygit.nvim" } },
config = function()
require("telescope").load_extension("lazygit")
end,
})
```
Lazy loading `lazygit.nvim` for telescope functionality is not supported. Open an issue if you wish to have this feature.
If you are not using Packer, to load the telescope extension, you have to add this line to your configuration:
```lua ```lua
require('telescope').load_extension('lazygit') require('telescope').load_extension('lazygit')