config: nvim: add telescope as fuzzy finder

This commit is contained in:
Thomas Preisner 2022-10-17 20:16:19 +02:00
parent d7def752af
commit 05f3e283db
2 changed files with 16 additions and 0 deletions

View file

@ -144,6 +144,15 @@ return require('packer').startup({
config = load_config('nvim-cmp'),
}
--------------------
-- Misc Utilities
--------------------
use { -- fuzzy finder
'nvim-telescope/telescope.nvim',
config = load_config('telescope'),
requires = {'nvim-lua/plenary.nvim'},
}
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then

View file

@ -0,0 +1,7 @@
local map = require('utils').map -- import map
-- telescope keybindings
map('n', 'ff', '<cmd>Telescope find_files<CR>')
map('n', 'fg', '<cmd>Telescope live_grep<CR>')
map('n', 'fb', '<cmd>Telescope buffers<CR>')
map('n', 'fh', '<cmd>Telescope help_tags<CR>')