nvim/lua/plugins/unused/buffer_manager.lua.bak

31 lines
733 B
Lua
Raw Normal View History

2023-12-04 09:24:43 +01:00
return {
'j-morano/buffer_manager.nvim',
keys = {
{ '<leader><leader>', "<cmd> lua require('buffer_manager.ui').toggle_quick_menu()<cr>", desc = 'buffers' },
2024-05-22 16:31:09 +02:00
{ 'gp', "<cmd> lua require('buffer_manager.ui').nav_next()<cr>", desc = 'next buffer' },
{ 'gn', "<cmd> lua require('buffer_manager.ui').nav_prev()<cr>", desc = 'next buffer' },
},
2023-12-04 09:24:43 +01:00
opts = {
-- line_keys = '', -- deactivate line keybindings
short_term_names = true,
focus_alternate_buffer = true,
select_menu_item_commands = {
edit = {
key = '<CR>',
command = 'edit',
},
v = {
key = '<C-v>',
command = 'vsplit',
},
h = {
key = '<C-h>',
command = 'split',
},
},
width = 0.6,
highlight = 'Normal:Normal',
2023-12-04 09:24:43 +01:00
},
}