Adding a lot of plugin

This commit is contained in:
2023-12-21 00:40:03 +01:00
parent c39e13a353
commit 9a2bca5f6d
11 changed files with 267 additions and 2 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
}