Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsakirist/telescope-lazy.nvim
Telescope extension that provides handy functionality about plugins installed via lazy.nvim
https://github.com/tsakirist/telescope-lazy.nvim
lazy lua neovim neovim-plugin telescope-extension
Last synced: about 2 months ago
JSON representation
Telescope extension that provides handy functionality about plugins installed via lazy.nvim
- Host: GitHub
- URL: https://github.com/tsakirist/telescope-lazy.nvim
- Owner: tsakirist
- License: mit
- Created: 2022-12-20T20:40:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T22:14:19.000Z (2 months ago)
- Last Synced: 2024-07-30T03:55:51.520Z (2 months ago)
- Topics: lazy, lua, neovim, neovim-plugin, telescope-extension
- Language: Lua
- Homepage:
- Size: 48.8 KB
- Stars: 92
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telescope-lazy.nvim
[Telescope](https://github.com/nvim-telescope/telescope.nvim) extension that
provides handy functionality about plugins installed via
[lazy.nvim](https://github.com/folke/lazy.nvim).## Demo
[Telescope-lazy-demo.webm](https://github.com/tsakirist/telescope-lazy.nvim/assets/20475201/d5f2a772-b45d-422f-b566-1d92359f7dba)
## Requirements
Required:
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
- [lazy.nvim](https://github.com/folke/lazy.nvim)Optional:
- [telescope-file-browser.nvim](https://github.com/nvim-telescope/telescope-file-browser.nvim)
- [telescope-egrepify.nvim](https://github.com/fdschmidt93/telescope-egrepify.nvim)## Installation
### Lazy
```lua
{ "nvim-telescope/telescope.nvim", dependencies = "tsakirist/telescope-lazy.nvim" }
```## Configuration
The extension comes with the following defaults:
```lua
require("telescope").setup({
extensions = {
lazy = {
-- Optional theme (the extension doesn't set a default theme)
theme = "ivy",
-- Whether or not to show the icon in the first column
show_icon = true,
-- Mappings for the actions
mappings = {
open_in_browser = "",
open_in_file_browser = "",
open_in_find_files = "",
open_in_live_grep = "",
open_in_terminal = "",
open_plugins_picker = "", -- Works only after having called first another action
open_lazy_root_find_files = "f",
open_lazy_root_live_grep = "g",
change_cwd_to_plugin = "d",
},
-- Extra configuration options for the actions
actions_opts = {
open_in_browser = {
-- Close the telescope window after the action is executed
auto_close = false,
},
change_cwd_to_plugin = {
-- Close the telescope window after the action is executed
auto_close = false,
},
},
-- Configuration that will be passed to the window that hosts the terminal
-- For more configuration options check 'nvim_open_win()'
terminal_opts = {
relative = "editor",
style = "minimal",
border = "rounded",
title = "Telescope lazy",
title_pos = "center",
width = 0.5,
height = 0.5,
},
-- Other telescope configuration options
},
},
})require("telescope").load_extension "lazy"
```## Available Commands
`:Telescope lazy`
## Available mappings
| Mappings | Action |
| -------- | ----------------------------------------------------------------------------- |
| `` | Open selected plugin repository in browser |
| `` | Open selected plugin with file-browser |
| `` | Open selected plugin with find files |
| `` | Open selected plugin with live grep (will use `egrepify` if installed) |
| `` | Open selected plugin in a terminal |
| `` | Open lazy plugins picker, works only after having called first another action |
| `f` | Open lazy root with find files |
| `g` | Open lazy root with live grep (will use `egrepify` if installed) |
| `d` | Change the current working directory to the path of the selected plugin |## Acknowledgments
This extension is heavily inspired by
[telescope-packer](https://github.com/nvim-telescope/telescope-packer.nvim).