Reorganize plugins dir

This commit is contained in:
2023-12-21 01:33:15 +01:00
parent 9a2bca5f6d
commit 309da905e9
15 changed files with 29 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
function conf()
--- Ensure plugin is avaiable
local bufferline = require("bufferline");
--- Bufferline options
opts = {
options = {
-- mode = "tabs",
separator_style = "slant",
},
}
--- Load bufferline
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>")
end
return {
"akinsho/bufferline.nvim",
version = "*",
dependencies = "nvim-tree/nvim-web-devicons",
config = conf
}