No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-12-04 21:53:43 +01:00
.github/workflows chore: setup linting (#33) 2023-11-24 17:42:48 +01:00
lua/telescope/_extensions fix: trigger on choice only once (#39) 2023-12-04 21:53:43 +01:00
.luacheckrc chore: setup linting (#33) 2023-11-24 17:42:48 +01:00
.stylua.toml fix: add stylua toml 2021-11-14 14:12:38 +01:00
LICENSE Initial commit 2021-11-04 07:34:17 +01:00
README.md feat: kind specific code with user interface (#7) 2022-04-24 20:08:40 +02:00

telescope-ui-select.nvim

It sets vim.ui.select to telescope. That means for example that neovim core stuff can fill the telescope picker. Example would be lua vim.lsp.buf.code_action().

screenshot

requires latest nvim 0.7 or newer nightly version

Installation

Plug 'nvim-telescope/telescope-ui-select.nvim'
use {'nvim-telescope/telescope-ui-select.nvim' }

Telescope Setup and Configuration:

-- This is your opts table
require("telescope").setup {
  extensions = {
    ["ui-select"] = {
      require("telescope.themes").get_dropdown {
        -- even more opts
      }

      -- pseudo code / specification for writing custom displays, like the one
      -- for "codeactions"
      -- specific_opts = {
      --   [kind] = {
      --     make_indexed = function(items) -> indexed_items, width,
      --     make_displayer = function(widths) -> displayer
      --     make_display = function(displayer) -> function(e)
      --     make_ordinal = function(e) -> string
      --   },
      --   -- for example to disable the custom builtin "codeactions" display
      --      do the following
      --   codeactions = false,
      -- }
    }
  }
}
-- To get ui-select loaded and working with telescope, you need to call
-- load_extension, somewhere after setup function:
require("telescope").load_extension("ui-select")