diff --git a/lua/lib/populate.lua b/lua/lib/populate.lua index af03b966..bc5e2c79 100644 --- a/lua/lib/populate.lua +++ b/lua/lib/populate.lua @@ -73,9 +73,13 @@ local function gen_ignore_check() end return function(path) + idx = path:match(".+()%.%w+$") + if idx then + ignore_extension = ignore_list['*'..string.sub(path, idx)] + end local ignore_path = not M.show_ignored and ignore_list[path] == true local ignore_dotfiles = not M.show_dotfiles and path:sub(1, 1) == '.' - return ignore_path or ignore_dotfiles + return ignore_extension or ignore_path or ignore_dotfiles end end