Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvim-telescope/telescope-ui-select.nvim
https://github.com/nvim-telescope/telescope-ui-select.nvim
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nvim-telescope/telescope-ui-select.nvim
- Owner: nvim-telescope
- License: mit
- Created: 2021-11-04T06:34:16.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-26T19:44:35.000Z (6 months ago)
- Last Synced: 2024-08-01T16:44:31.827Z (3 months ago)
- Language: Lua
- Size: 11.7 KB
- Stars: 761
- Watchers: 6
- Forks: 16
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://user-images.githubusercontent.com/66286082/154263222-ccecd75a-9b4b-410f-9843-1f300638aecf.png)
requires latest nvim 0.7 or newer nightly version
## Installation
```viml
Plug 'nvim-telescope/telescope-ui-select.nvim'
``````lua
use {'nvim-telescope/telescope-ui-select.nvim' }
```## Telescope Setup and Configuration:
```lua
-- 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")
```