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: 11 days ago
JSON representation

Telescope extension that provides handy functionality about plugins installed via lazy.nvim

Lists

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).