From 591fdce55ea6a512ba5488ba0354558a2c4cdd13 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Wed, 24 May 2023 15:32:46 -0700 Subject: [PATCH] remaps for buffers and tabs --- after/plugin/barbar.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 after/plugin/barbar.lua diff --git a/after/plugin/barbar.lua b/after/plugin/barbar.lua new file mode 100644 index 0000000..0d54d22 --- /dev/null +++ b/after/plugin/barbar.lua @@ -0,0 +1,9 @@ +local map = vim.api.nvim_set_keymap +local opts = { noremap = true, silent = true } + +-- Move to previous/next +map('n', '', ':BufferPrevious', opts) +map('n', '', ':BufferNext', opts) + +-- close current buffer +map('n', '', ':BufferClose', opts)