summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorCharles Moscofian <charlesmoscofian@hotmail.com>2022-07-06 03:29:15 -0300
committerGitHub <noreply@github.com>2022-07-06 08:29:15 +0200
commitb44e657986be5cae5679d5c12337e03a04848562 (patch)
treecf9b2065ea6d7a0344b8982e8e07b3c67bf01ead /lua
parent02cf3e40703e25b49a8193a4159592576bbe530f (diff)
fix(path_display): allow function on path_display (#2043)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/utils.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua
index 356d102..4db75a8 100644
--- a/lua/telescope/utils.lua
+++ b/lua/telescope/utils.lua
@@ -204,9 +204,7 @@ utils.is_path_hidden = function(opts, path_display)
return path_display == nil
or path_display == "hidden"
- or type(path_display) ~= "table"
- or vim.tbl_contains(path_display, "hidden")
- or path_display.hidden
+ or type(path_display) == "table" and (vim.tbl_contains(path_display, "hidden") or path_display.hidden)
end
local is_uri = function(filename)