vimtricks.wiki Concise Vim tricks, one at a time.

How do I use Telescope for fuzzy finding in Neovim?

Answer

:Telescope find_files

Explanation

Telescope is a highly extensible fuzzy finder for Neovim. It provides a beautiful floating window interface for searching files, text, buffers, and more.

How it works

  • :Telescope find_files opens the file finder
  • :Telescope live_grep searches text across files
  • :Telescope buffers lists open buffers
  • :Telescope help_tags searches help documentation

Example

-- Neovim Lua configuration
vim.keymap.set('n', '<leader>ff', ':Telescope find_files<CR>')
vim.keymap.set('n', '<leader>fg', ':Telescope live_grep<CR>')
vim.keymap.set('n', '<leader>fb', ':Telescope buffers<CR>')

Tips

  • Requires Neovim 0.5+
  • Install with a plugin manager supporting Lua plugins
  • <C-x> opens in a split, <C-v> in a vsplit
  • Highly customizable with Lua configuration
  • Extensions available for git, LSP, file browser, and more

Next

How do you yank a single word into a named register?