|
@@ -4,6 +4,7 @@ local telescope_actions = require('telescope.actions')
|
|
|
local telescope_builtin = require('telescope.builtin')
|
|
|
local telescope_pickers = require('telescope.pickers')
|
|
|
local telescope_finders = require('telescope.finders')
|
|
|
+local telescope_themes = require('telescope.themes')
|
|
|
local telescope_previewers = require('telescope.previewers')
|
|
|
local telescope_putils = require('telescope.previewers.utils')
|
|
|
local telescope_conf = require('telescope.config').values
|
|
@@ -102,11 +103,19 @@ telescope.setup({
|
|
|
mappings = commit_mappings,
|
|
|
},
|
|
|
},
|
|
|
+ extensions = {
|
|
|
+ ['ui-select'] = {
|
|
|
+ telescope_themes.get_dropdown({})
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
-- use native sorter for better performance
|
|
|
telescope.load_extension('fzf')
|
|
|
|
|
|
+-- use telescope for vim.ui.select
|
|
|
+telescope.load_extension('ui-select')
|
|
|
+
|
|
|
-- custom picker to fallback to files if no git
|
|
|
local function project_files()
|
|
|
local ok = pcall(telescope_builtin.git_files, { show_untracked = true })
|