summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-08-28 16:03:29 +0530
committersinanmohd <sinan@firemail.cc>2023-08-28 16:19:59 +0530
commit58655c94ce9771bab1022d5bdbaedde1a897707f (patch)
tree3cc2003c93219e5a6dfe746e481f522f8931b380
parente27f14a33a801c3958b50d4753e86fff0789c75c (diff)
config/nvim: update keybindings
-rw-r--r--.config/nvim/init.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index c62c1f6..d88794d 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -36,6 +36,7 @@ map("n", "<C-x>", ":bd!<CR>")
map("t", "<C-x>", "<C-\\><C-n>:bd!<CR>")
map("n", "<C-s>", ":close<CR>")
map("t", "<C-s>", "<C-\\><C-n>")
+mapnl("n", ":nohlsearch<CR>")
-- splits
map("n", "<C-h>", "<C-w>h")
map("n", "<C-j>", "<C-w>j")
@@ -50,14 +51,14 @@ map("n", "<leader>t", ":vsplit<CR>:terminal<CR>i")
map("t", "<leader>t", "<C-\\><C-n>:q<CR>")
-- buffer
map("t", "<leader>j", "<C-\\><C-n>:bprevious<CR>")
-map("t", "<leader>k", "<C-\\><C-n>:bNext<CR>")
+map("t", "<leader>k", "<C-\\><C-n>:bnext<CR>")
mapnl("j", ":bprevious<CR>")
-mapnl("k", ":bNext<CR>")
+mapnl("k", ":bnext<CR>")
-- tabs
map("t", "<leader>h", "<C-\\><C-n>:tabprevious<CR>")
-map("t", "<leader>l", "<C-\\><C-n>:tabNext<CR>")
+map("t", "<leader>l", "<C-\\><C-n>:tabnext<CR>")
mapnl("h", ":tabprevious<CR>")
-mapnl("l", ":tabNext<CR>")
+mapnl("l", ":tabnext<CR>")
-- files
mapnl("e", ":Lex<CR>")
-- column hint