style(snacks): improve layout configurations for better UI consistency

This commit is contained in:
sankalp committed 2025-11-17 22:58:13 +05:45
1 parent f8a4722565
commit 699dfc53eb
1 file changed
+24 -3
+24 -3
View File
@@ -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 },