feat: add telescope ui-select

main
mandlm 2022-05-18 10:21:09 +02:00
parent a3d0c3623d
commit fde2607ca2
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 17 additions and 8 deletions

View File

@ -141,11 +141,14 @@ return require('packer').startup(function(use)
-- Telescope
use({
'nvim-telescope/telescope.nvim',
requires = { { 'nvim-lua/plenary.nvim' } },
config = function() require('plugins.telescope') end
"nvim-telescope/telescope.nvim",
requires = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
{ "nvim-telescope/telescope-ui-select.nvim" },
},
config = function() require("plugins.telescope") end
})
use({ 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' })
-- automatic pairs
use({ "Raimondi/delimitMate" })

View File

@ -1,6 +1,8 @@
local telescope = require("telescope")
local actions = require("telescope.actions")
local themes = require("telescope.themes")
require('telescope').setup({
telescope.setup({
defaults = {
mappings = {
i = {
@ -11,7 +13,7 @@ require('telescope').setup({
},
n = {
["<ESC>"] = actions.close,
['<C-c>'] = actions.close
["<C-c>"] = actions.close
}
}
},
@ -20,8 +22,12 @@ require('telescope').setup({
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true
}
},
["ui-select"] = {
themes.get_dropdown({})
},
}
})
require('telescope').load_extension('fzf')
telescope.load_extension("fzf")
telescope.load_extension("ui-select")