add telescope ui select

This commit is contained in:
fiplox 2023-01-17 15:39:52 +01:00
parent f0388ec5e0
commit 550b6f1f90
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,9 @@
local M = {
'williamboman/mason.nvim',
cmd = 'Mason',
dependencies = {
'nvim-telescope/telescope.nvim',
},
}
-- M.tools = {

View File

@ -15,6 +15,9 @@
local M = {
'nvim-telescope/telescope.nvim',
cmd = { 'Telescope' },
dependencies = {
'nvim-telescope/telescope-ui-select.nvim',
},
}
function M.config()
@ -43,6 +46,11 @@ function M.config()
-- local fb_actions = require "telescope".extensions.file_browser.actions
telescope.setup {
extensions = {
['ui-select'] = {
require('telescope.themes').get_dropdown {},
},
},
pickers = {
find_files = {
find_command = { 'fd', '--type', 'f', '--strip-cwd-prefix' },
@ -87,6 +95,7 @@ function M.config()
},
},
}
require('telescope').load_extension 'ui-select'
end
return M