add some mappings

This commit is contained in:
siduck76
2021-06-27 18:15:58 +05:30
parent 89ab7f7be9
commit 7d23b8c24e
3 changed files with 10 additions and 16 deletions

View File

@@ -17,15 +17,3 @@ require "bufferline".setup {
mappings = "true"
}
}
local opt = {silent = true}
local map = vim.api.nvim_set_keymap
vim.g.mapleader = " "
-- MAPPINGS
map("n", "<S-t>", [[<Cmd>tabnew<CR>]], opt) -- new tab
map("n", "<S-x>", [[<Cmd>bdelete<CR>]], opt) -- close tab
-- move between tabs
map("n", "<TAB>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
map("n", "<S-TAB>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)