From d5e60bf5ef7b878b1a3fdaeded3e2b051f186eed Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Mon, 10 Feb 2025 12:37:45 +0000 Subject: [PATCH] tune snack pickers format --- lua/plugins/snacks.lua | 10 +++++++++- lua/themes/bamboo.lua | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index dceccd4..64610c4 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -37,7 +37,9 @@ return { }, picker = { matcher = { - frecency = true + frecency = true, + cwd_bonus = true, + filename_bonus = true, }, win = { input = { @@ -46,6 +48,12 @@ return { }, }, }, + formatters = { + file = { + truncate = 100, + filename_first = true + } + } } }, keys = { diff --git a/lua/themes/bamboo.lua b/lua/themes/bamboo.lua index aab1af3..320d62a 100644 --- a/lua/themes/bamboo.lua +++ b/lua/themes/bamboo.lua @@ -30,6 +30,7 @@ return { ['LspReferenceRead'] = { bg = colors.vulgaris.green, fg = colors.vulgaris.bg1, fmt = 'nocombine' }, ['LspReferenceWrite'] = { bg = colors.vulgaris.red, fg = colors.vulgaris.bg1, fmt = 'nocombine' }, ['LspReferenceText'] = { bg = colors.vulgaris.cyan, fg = colors.vulgaris.bg1, fmt = 'nocombine' }, + ['NonText'] = { fg = colors.vulgaris.blue } }, }) require('bamboo').load()