Skip to content

tsakirist/telescope-lazy.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

telescope-lazy.nvim

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

Demo

Telescope-lazy-demo.webm

Requirements

Required:

Optional:

Installation

Lazy

{ "nvim-telescope/telescope.nvim", dependencies = "tsakirist/telescope-lazy.nvim" }

Configuration

The extension comes with the following defaults:

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 = "<C-o>",
        open_in_file_browser = "<M-b>",
        open_in_find_files = "<C-f>",
        open_in_live_grep = "<C-g>",
        open_in_terminal = "<C-t>",
        open_plugins_picker = "<C-b>", -- Works only after having called first another action
        open_lazy_root_find_files = "<C-r>f",
        open_lazy_root_live_grep = "<C-r>g",
        change_cwd_to_plugin = "<C-c>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
<C-o> Open selected plugin repository in browser
<M-b> Open selected plugin with file-browser
<C-f> Open selected plugin with find files
<C-g> Open selected plugin with live grep (will use egrepify if installed)
<C-t> Open selected plugin in a terminal
<C-b> Open lazy plugins picker, works only after having called first another action
<C-r>f Open lazy root with find files
<C-r>g Open lazy root with live grep (will use egrepify if installed)
<C-c>d Change the current working directory to the path of the selected plugin

Acknowledgments

This extension is heavily inspired by telescope-packer.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages