diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index 90e8389..42c0af7 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -17,8 +17,8 @@ return { box = 'vertical', border = 'rounded', title = '{title} {live} {flags}', - { win = 'input', height = 1, border = 'bottom' }, - { win = 'list', border = 'none' }, + { win = 'input', height = 1, border = 'bottom' }, + { win = 'list', border = 'none' }, }, { win = 'preview', title = '{preview}', border = 'rounded', width = preview_width }, }, @@ -45,7 +45,7 @@ return { title = '{title} {live} {flags}', title_pos = 'center', }, - { win = 'list', border = 'hpad' }, + { win = 'list', border = 'hpad' }, { win = 'preview', title = '{preview}', border = 'rounded' }, }, } @@ -194,6 +194,27 @@ return { undo = { layout = { preset = 'ivy' } }, zoxide = { layout = files_layout(0.7) }, }, + layout = 'custom', + layouts = { + custom = { + layout = { + box = 'vertical', + backdrop = false, + row = -1, + width = 0, + height = 0.4, + border = 'none', + title = ' {title} {live} {flags}', + title_pos = 'left', + { + box = 'horizontal', + { win = 'list', border = 'rounded' }, + { win = 'preview', title = '{preview}', width = 0.6, border = 'rounded' }, + }, + { win = 'input', height = 1, border = 'top' }, + }, + }, + }, }, profiler = { enabled = true }, quickfile = { enabled = true },