From 05f3e283dbcd525d0f80352a90a76b27d4109f2a Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Mon, 17 Oct 2022 20:16:19 +0200 Subject: [PATCH] config: nvim: add telescope as fuzzy finder --- config/nvim/lua/plugins.lua | 9 +++++++++ config/nvim/lua/plugins/telescope.lua | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 config/nvim/lua/plugins/telescope.lua diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 990e23f..29cdd27 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -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 diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..b549b98 --- /dev/null +++ b/config/nvim/lua/plugins/telescope.lua @@ -0,0 +1,7 @@ +local map = require('utils').map -- import map + +-- telescope keybindings +map('n', 'ff', 'Telescope find_files') +map('n', 'fg', 'Telescope live_grep') +map('n', 'fb', 'Telescope buffers') +map('n', 'fh', 'Telescope help_tags')