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

View File

@@ -1,26 +1,3 @@
local function config()
--- Ensure plugin is avaiable
local bufferline = require("bufferline");
--- 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>")
end
return {
"akinsho/bufferline.nvim",