summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorlouie <louie@example.com>2022-06-28 18:55:40 -0700
committerlouie <louie@example.com>2022-06-28 18:55:40 -0700
commit0e8ef35324fbc1ee13257912c6fe6a82c01d42c6 (patch)
tree6f30862d960a4ba3e2695899f6f397f7a5b1089e /lua
parented4b3c8a653d781a2428359fc29de559a10c6317 (diff)
Keymap to navigate buffers
Diffstat (limited to 'lua')
-rw-r--r--lua/user/keymaps.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua
index 26fb9f7..2e03cec 100644
--- a/lua/user/keymaps.lua
+++ b/lua/user/keymaps.lua
@@ -35,6 +35,12 @@ keymap("n", "<S-l>", "gt", opts)
keymap("n", "<S-Left>", "gT", opts)
keymap("n", "<S-Right>", "gt", opts)
+-- Navigate buffers (both hjkl and arrow keys)
+keymap("n", "<S-j>", ":bnext<CR>", opts)
+keymap("n", "<S-k>", ":bprevious<CR>", opts)
+keymap("n", "<S-Down>", ":bnext<CR>", opts)
+keymap("n", "<S-Up>", ":bprevious<CR>", opts)
+
-- Open Lexplorer
--keymap("n", "<leader>e", ":Lex 30<cr>", opts)