GithubHelp home page GithubHelp logo

tsakirist / telescope-lazy.nvim Goto Github PK

View Code? Open in Web Editor NEW
88.0 3.0 2.0 45 KB

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

License: MIT License

Lua 100.00%
lazy neovim neovim-plugin telescope-extension lua

telescope-lazy.nvim's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.