This commit is contained in:
voidarclabs
2025-04-18 14:01:32 +01:00
commit 628b2d3fd3
10 changed files with 329 additions and 0 deletions

59
lua/plugins/jabs.lua Normal file
View File

@@ -0,0 +1,59 @@
return {
{
"matbme/JABS.nvim",
config = function()
require("jabs").setup({
-- Options for the main window
position = { "center", "top" }, -- position = {'<position_x>', '<position_y>'} | <position_x> left, center, right,
-- <position_y> top, center, bottom
-- Default {'right', 'bottom'}
relative = "editor", -- win, editor, cursor. Default win
clip_popup_size = false, -- clips the popup size to the win (or editor) size. Default true
width = 80, -- default 50
height = 20, -- default 10
border = "single", -- none, single, double, rounded, solid, shadow, (or an array or chars). Default shadow
offset = { -- window position offset
top = 4, -- default 0
bottom = 2, -- default 0
left = 2, -- default 0
right = 2, -- default 0
},
sort_mru = true, -- Sort buffers by most recently used (true or false). Default false
split_filename = true, -- Split filename into separate components for name and path. Default false
split_filename_path_width = 20, -- If split_filename is true, how wide the column for the path is supposed to be, Default 0 (don't show path)
-- Options for preview window
preview_position = "left", -- top, bottom, left, right. Default top
preview = {
width = 40, -- default 70
height = 60, -- default 30
border = "rounded", -- none, single, double, rounded, solid, shadow, (or an array or chars). Default double
},
-- Default highlights (must be a valid :highlight)
highlight = {
current = "Title", -- default StatusLine
hidden = "StatusLineNC", -- default ModeMsg
split = "WarningMsg", -- default StatusLine
alternate = "StatusLine", -- default WarningMsg
},
-- Default symbols
keymap = {
close = "<c-d>", -- Close buffer. Default D
jump = "<cr>", -- Jump to buffer. Default <cr>
h_split = "h", -- Horizontally split buffer. Default s
v_split = "v", -- Vertically split buffer. Default v
preview = "p", -- Open buffer preview. Default P
},
-- Whether to use nvim-web-devicons next to filenames
use_devicons = true, -- true or false. Default true
})
end,
},
}