From 1b1cf6aead5f4874dbddf78af56e862f02723566 Mon Sep 17 00:00:00 2001 From: "Mr.Z" <44504986+Mr-LLLLL@users.noreply.github.com> Date: Sun, 6 Aug 2023 06:37:44 +0800 Subject: [PATCH] fix:can't display file name if config show_filter_column is false (#102) Co-authored-by: zhaogang --- lua/frecency/picker.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/frecency/picker.lua b/lua/frecency/picker.lua index d85e8d1..9ef0bc1 100644 --- a/lua/frecency/picker.lua +++ b/lua/frecency/picker.lua @@ -176,7 +176,9 @@ m.maker = function(entry) if has_devicons and not m.config.disable_devicons then table.insert(i, { devicons.get_icon(e.name, string.match(e.name, "%a+$"), { default = true }) }) end - table.insert(i, { filter_path, "Directory" }) + if m.config.show_filter_column then + table.insert(i, { filter_path, "Directory" }) + end table.insert(i, { formatter(e.name), util.buf_is_loaded(e.name) and "TelescopeBufferLoaded" or "",