Autocommit 2023-40-28 03:40:48
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user