From ec235190e8f3240b78f943f6fbb10408783949d0 Mon Sep 17 00:00:00 2001 From: talha Date: Fri, 10 Jan 2025 14:54:54 +0500 Subject: initializing new branch --- lua/talha/remap.lua | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'lua/talha/remap.lua') diff --git a/lua/talha/remap.lua b/lua/talha/remap.lua index 0569836..f2c714b 100644 --- a/lua/talha/remap.lua +++ b/lua/talha/remap.lua @@ -1,3 +1,14 @@ +-- easier navigation +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") + +-- tab navigation +vim.keymap.set("n", "", vim.cmd.tabnew) +vim.keymap.set("n", "", vim.cmd.tabp) +vim.keymap.set("n", "", vim.cmd.tabn) + -- open project view with netrw vim.keymap.set("n", "pv", vim.cmd.Ex) @@ -22,11 +33,6 @@ 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]]) @@ -51,9 +57,8 @@ vim.keymap.set("n", "", function() SafeCListNav(1) end) -- go to prev error vim.keymap.set("n", "", function() SafeCListNav(-1) end) -- open error list when there are errors -vim.keymap.set("n", "", vim.cmd.cw) +vim.keymap.set("n", "", vim.cmd.cw) + +---- snippets +vim.keymap.set("n", "", [[:lua LoadSnippet('')]]) --- building -vim.keymap.set("n", "", function() - vim.cmd.Neomake{bang=true}; -end) -- cgit v1.2.3