From ae4605940094690708356a6b7fecdd14548672fa Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 5 Mar 2024 00:07:44 +0000 Subject: [PATCH] Change up Telescope mappings --- lua/plugins/telescope.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 41eaf8a..965817e 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -6,12 +6,13 @@ return { config = function() require('telescope').setup({}) - -- TODO: Add more mappings - vim.keymap.set('n', 'f', ':Telescope find_files', { noremap = true }) - vim.keymap.set('n', 'g', ':Telescope git_files', { noremap = true }) - -- vim.keymap.set('n', 'g', ':Telescope live_grep', { noremap = true }) - vim.keymap.set('n', 'b', ':Telescope buffers', { noremap = true }) - vim.keymap.set('n', 'h', ':Telescope help_tags', { noremap = true }) + -- TODO: Add more mappings? + local opts = { noremap = true } + vim.keymap.set('n', 'ff', ':Telescope find_files', opts) + vim.keymap.set('n', 'gf', ':Telescope git_files', opts) + vim.keymap.set('n', 'lg', ':Telescope live_grep', opts) + vim.keymap.set('n', 'b', ':Telescope buffers', opts) + vim.keymap.set('n', 'he', ':Telescope help_tags', opts) end }