aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-20 18:19:59 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-20 18:28:58 +0530
commit7332b6b2daa211abc7ec2d6f18b3a0438acec976 (patch)
tree2d547343046efd8c17812bc634fd386859fa00bc
parentdfcd079f82db1504c1d3304dcd0702fddaaf03bb (diff)
core/maps: init previous ('[b') and next (']b') buffer
-rw-r--r--lua/core/maps.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/core/maps.lua b/lua/core/maps.lua
index 14f05f1..61617cf 100644
--- a/lua/core/maps.lua
+++ b/lua/core/maps.lua
@@ -1,6 +1,8 @@
local maps = {
n = {
- ["<Esc>"] = { "<cmd> noh <CR>", "Clear highlights" },
+ ["<Esc>"] = { "<CMD> noh <CR>", "Clear highlights" },
+ ["[b"] = { "<CMD> bprev <CR>", "Previous buffer" },
+ ["]b"] = { "<CMD> bnext <CR>", "Next buffer" },
["<Leader>cc"] = {
function()
if vim.api.nvim_get_option_value("colorcolumn", {}) == "" then