Add ui-select for telescope

This commit is contained in:
Marco 2024-02-06 15:33:33 +01:00
parent 19da94c52b
commit d5cd4d1a96
2 changed files with 19 additions and 8 deletions

View File

@ -6,9 +6,18 @@ vim.keymap.set('v', '<leader>fp', builtin.grep_string);
vim.keymap.set('n', '<leader>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",

View File

@ -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)