From 425134a4e2b84ccbb8aaf0ff80c4ca84479a04d2 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sun, 28 May 2023 01:02:32 +0200 Subject: [PATCH] changed name of mapping --- init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e22dcb7..4ab9ec1 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,7 @@ local keymap = { search_for_files_in_working_directory = '', search_for_previously_opened_files = '', - search_within_open_file = 'fg', + live_grep = 'fg', search_help_pages = 'fh', rename_symbol = 'rn', @@ -32,7 +32,6 @@ vim.opt.wrap = false -- Don't wrap the line. Let it go offscreen. vim.opt.shiftround = true vim.opt.expandtab = true - -- Will only run the first time nvim launches to install packer local ensure_packer = function() local fn = vim.fn @@ -140,7 +139,7 @@ local function packer_startup(use) }; local builtin = require('telescope.builtin') vim.keymap.set('n', keymap.search_for_files_in_working_directory, builtin.find_files, {}) vim.keymap.set('n', keymap.search_for_previously_opened_files, builtin.oldfiles, {}) - vim.keymap.set('n', keymap.search_within_open_file, builtin.live_grep, {}) + vim.keymap.set('n', keymap.live_grep, builtin.live_grep, {}) vim.keymap.set('n', keymap.search_help_pages, builtin.help_tags, {}) if packer_bootstrap then -- Must be last instruction.