From bca3805fdea8f92253a3710dd01f4c8d9908c2ee Mon Sep 17 00:00:00 2001 From: talha Date: Tue, 23 Apr 2024 03:20:00 +0500 Subject: Updated file remaps, add tab navigation --- after/plugin/telescope.lua | 4 ++-- lua/talha/remap.lua | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index b007673..4806008 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,6 +1,6 @@ local builtin = require('telescope.builtin') -vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'pf', builtin.find_files, {}) vim.keymap.set('n', '', builtin.git_files, {}) -vim.keymap.set('n', 'fs', function() +vim.keymap.set('n', 'ps', function() builtin.grep_string({ search = vim.fn.input("Grep > ") }); end) diff --git a/lua/talha/remap.lua b/lua/talha/remap.lua index 079268c..0569836 100644 --- a/lua/talha/remap.lua +++ b/lua/talha/remap.lua @@ -22,6 +22,11 @@ vim.keymap.set("n", "N", "Nzzzv") vim.keymap.set("x", "p", "\"_dP") +-- Tab navigation +vim.keymap.set("n", "n", vim.cmd.tabn) +-- go to prev error +vim.keymap.set("n", "p", vim.cmd.tabp) + ---- system clipboard -- copying vim.keymap.set("n", "y", [["+y]]) -- cgit v1.2.3