prochri / telescope-picker-history-action

A useful telescope.nvim action to switch between pickers in the history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telescope-picker-history-action

A useful telescope.nvim action to switch between pickers in the history

Installation

Using lazy.nvim, with my default key mappings:

-- telescope settings
{
  'nvim-telescope/telescope.nvim',
  opts = {
    -- ... your telescope config
    defaults = {
      -- ... your other defaults
      cache_picker = {
        -- we need to have a picker history we can work with
        num_pickers = 100
      }
      mapppings = {
        i = {
          ["<C-,>"] = function()
            require'telescope-picker-history-action'.prev_picker()
          end,
          ["<C-.>"] = function()
            require'telescope-picker-history-action'.next_picker()
          end,
        }
      }
    }
  }
},

-- plugin installation
{
  'prochri/telescope-picker-history-action',
  opts = true
}

About

A useful telescope.nvim action to switch between pickers in the history

License:MIT License


Languages

Language:Lua 100.0%