From b98fd0ba461fe4ade915b70f3bb6f9764771231f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 28 Aug 2023 14:34:53 +0530 Subject: config/nvim: update keybindings --- .config/nvim/init.lua | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to '.config/nvim') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index e57dd51..804cee3 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -30,6 +30,11 @@ local mapnl = function(lhs, rhs, opts) end -- [[ keybindings ]] +-- close and bd +map("n", "", ":bd") +map("t", "", ":bd!") +map("n", "", ":close") +map("t", "", "") -- splits map("n", "", "h") map("n", "", "j") @@ -43,11 +48,15 @@ map("t", "", "l") map("n", "t", ":vsplit:terminali") map("t", "t", ":q") -- buffer -mapnl("h", ":bprevious") -mapnl("l", ":bNext") +map("t", "j", ":bprevious") +map("t", "k", ":bNext") +mapnl("j", ":bprevious") +mapnl("k", ":bNext") -- tabs -mapnl("j", ":tabprevious") -mapnl("k", ":tabNext") +map("t", "h", ":tabprevious") +map("t", "l", ":tabNext") +mapnl("h", ":tabprevious") +mapnl("l", ":tabNext") -- files mapnl("e", ":Lex") -- column hint -- cgit v1.2.3