diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 339dd9c..fb28658 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -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" }) diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index d0cf821..836d7a9 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -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 = { [""] = actions.close, - [''] = actions.close + [""] = 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")