Skip to content

Commit

Permalink
Add bufferline-cycle-windowless
Browse files Browse the repository at this point in the history
  • Loading branch information
krmbzds committed Oct 29, 2023
1 parent f9f96de commit 9ef26df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ keymap("n", "<C-Left>", ":vertical resize +2<CR>", opts)
keymap("n", "<C-Right>", ":vertical resize -2<CR>", opts)

-- Navigate buffers
keymap("n", "<S-l>", ":bnext<CR>", opts)
keymap("n", "<S-h>", ":bprevious<CR>", opts)
keymap("n", "<S-l>", "<cmd>BufferLineCycleWindowlessNext<CR>", opts)
keymap("n", "<S-h>", "<cmd>BufferLineCycleWindowlessPrev<CR>", opts)
keymap("n", "<S-A-l>", "<cmd>BufferLineMoveNext<CR>", opts)
keymap("n", "<S-A-h>", "<cmd>BufferLineMovePrev<CR>", opts)

Expand Down
20 changes: 20 additions & 0 deletions lua/config/plugins/bufferline-cycle-windowless.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
local M = {
"roobert/bufferline-cycle-windowless.nvim",
dependencies = {
{ "akinsho/bufferline.nvim" },
},
}

function M.config()
local status_ok, bufferline_cycle_windowless = pcall(require, "bufferline-cycle-windowless")
if not status_ok then
return
end

bufferline_cycle_windowless.setup({
-- whether to start in enabled or disabled mode
default_enabled = true,
})
end

return M

0 comments on commit 9ef26df

Please sign in to comment.