From a5e8bbeb9d79d905a193e95a39acd29bc37e6c66 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 16 Sep 2026 08:47:13 +0200 Subject: Updated dotfiles --- neovim/.config/nvim/lua/plugins/fuzzyfinder.lua | 36 ++++++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'neovim/.config/nvim/lua/plugins/fuzzyfinder.lua') diff --git a/neovim/.config/nvim/lua/plugins/fuzzyfinder.lua b/neovim/.config/nvim/lua/plugins/fuzzyfinder.lua index 444d9ff..2ed9970 100644 --- a/neovim/.config/nvim/lua/plugins/fuzzyfinder.lua +++ b/neovim/.config/nvim/lua/plugins/fuzzyfinder.lua @@ -1,10 +1,32 @@ return { - "ctrlpvim/ctrlp.vim", - init = function() - -- Use ripgrep for listing files (fast, respects .gitignore) - if vim.fn.executable("rg") == 1 then - vim.g.ctrlp_user_command = 'rg %s --files --color=never --glob ""' - vim.g.ctrlp_use_caching = 0 - end + "nvim-telescope/telescope.nvim", + -- Not left to lazy-load off `keys`: telescope-ui-select's vim.ui.select() + -- override (below) needs to be installed from startup, otherwise + -- overseer's rr / nvim-dap-python's dc pickers fall back + -- to Neovim's default list until something (e.g. ) happens to + -- trigger telescope's own lazy-load first. + lazy = false, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope-ui-select.nvim", + }, + keys = { + { "", "Telescope find_files" }, + { "fg", "Telescope live_grep" }, + { "fb", "Telescope buffers" }, + }, + config = function() + -- telescope-ui-select makes vim.ui.select() - overseer's rr + -- template picker, nvim-dap-python's launch-config picker, LSP code + -- actions, etc. - a scrollable/fuzzy-searchable Telescope window + -- instead of Neovim's default numbered-list-in-the-cmdline prompt. + require("telescope").setup({ + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown({}), + }, + }, + }) + require("telescope").load_extension("ui-select") end, } -- cgit v1.3