diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index cb95d57..c8e2338 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -6,9 +6,18 @@ vim.keymap.set('v', 'fp', builtin.grep_string); vim.keymap.set('n', 'fs', builtin.lsp_dynamic_workspace_symbols); --- To get telescope-file-browser loaded and working with telescope, --- you need to call load_extension, somewhere after setup function: -require("telescope").load_extension "file_browser" + +require("telescope").setup({ + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown { + } + } + } +}) + +require("telescope").load_extension("ui-select") +require("telescope").load_extension("file_browser") vim.api.nvim_set_keymap( "n", diff --git a/lua/myworkflow/packer.lua b/lua/myworkflow/packer.lua index 81f40be..b130a95 100644 --- a/lua/myworkflow/packer.lua +++ b/lua/myworkflow/packer.lua @@ -2,9 +2,15 @@ vim.cmd [[packadd packer.nvim]] return require('packer').startup(function(use) + -- Telescope use { 'nvim-telescope/telescope.nvim', requires = { { 'nvim-lua/plenary.nvim' } } } + use { + "nvim-telescope/telescope-file-browser.nvim", + requires = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" } + } + use { 'nvim-telescope/telescope-ui-select.nvim' } -- fugitive use 'tpope/vim-fugitive' @@ -22,6 +28,7 @@ return require('packer').startup(function(use) -- Colors use 'ellisonleao/gruvbox.nvim' + use 'overcache/NeoSolarized' -- LSP use 'neovim/nvim-lspconfig' @@ -56,9 +63,4 @@ return require('packer').startup(function(use) -- Neovim development use 'folke/neodev.nvim' - - use { - "nvim-telescope/telescope-file-browser.nvim", - requires = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" } - } end)