Autocommit 2023-07-25 11:07:37
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
function conf()
|
||||
local function config()
|
||||
--- Ensure plugin is avaiable
|
||||
local bufferline = require("bufferline");
|
||||
|
||||
--- Bufferline options
|
||||
--- Plugin options
|
||||
opts = {
|
||||
options = {
|
||||
-- mode = "tabs",
|
||||
@@ -10,20 +10,21 @@ function conf()
|
||||
},
|
||||
}
|
||||
|
||||
--- Load bufferline
|
||||
--- 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", "<C-n>", ":BufferLineMoveNext<cr>")
|
||||
km("n", "<C-p>", ":BufferLineMovePrev<cr>")
|
||||
km("n", "<leader>bn", ":BufferLineMoveNext<cr>")
|
||||
km("n", "<leader>bp", ":BufferLineMovePrev<cr>")
|
||||
km("n", "<leader>bc", ":BufferLinePickClose<cr>")
|
||||
end
|
||||
|
||||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "*",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
config = conf
|
||||
config = config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user