Autocommit 2023-40-28 03:40:48

This commit is contained in:
2023-12-28 03:40:48 +01:00
parent 3fcfbf1d8d
commit bd5d8ac62f
8 changed files with 42 additions and 55 deletions

24
lua/config/bufferline.lua Normal file
View File

@@ -0,0 +1,24 @@
--- Ensure plugin is avaiable
local ok, bufferline = pcall(require, "bufferline")
if not ok then
return
end
--- Plugin options
opts = {
options = {
-- mode = "tabs",
separator_style = "slant",
},
}
--- Load plugin
bufferline.setup(opts)
--- Override keymaps
local km = vim.keymap.set
km("n", "<Tab>", ":BufferLineCycleNext<cr>")
km("n", "<S-Tab>", ":BufferLineCyclePrev<cr>")
km("n", "<leader>bn", ":BufferLineMoveNext<cr>")
km("n", "<leader>bp", ":BufferLineMovePrev<cr>")
km("n", "<leader>bc", ":BufferLinePickClose<cr>")