feat: g:lua_tree_ignore support *.extension
This commit is contained in:
parent
c84b8b4ab9
commit
043678c7bb
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user