End of config for now

This commit is contained in:
2023-12-30 18:35:52 +01:00
parent c6fc077654
commit 9d87a5985d
21 changed files with 490 additions and 131 deletions

View File

@@ -1,15 +1,15 @@
--- Ensure plugin is avaiable
local ok, bufferline = pcall(require, "bufferline")
if not ok then
return
return
end
--- Plugin options
opts = {
options = {
-- mode = "tabs",
separator_style = "slant",
},
local opts = {
options = {
-- mode = "tabs",
separator_style = "slant",
},
}
--- Load plugin
@@ -17,8 +17,8 @@ bufferline.setup(opts)
--- Override keymaps
local km = vim.keymap.set
km("n", "<Tab>", ":BufferLineCycleNext<cr>")
km("n", "<S-Tab>", ":BufferLineCyclePrev<cr>")
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>")