fix:can't display file name if config show_filter_column is false (#102)

Co-authored-by: zhaogang <zhaogang@dustess.com>
This commit is contained in:
Mr.Z 2023-08-06 06:37:44 +08:00 committed by GitHub
parent 62d3381a32
commit 1b1cf6aead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 "",