Add mapping for toggling ignored folders visibility.

This commit is contained in:
Kristijan Husak
2020-07-17 10:25:01 +02:00
parent 20f39a951a
commit 4f86707051
6 changed files with 33 additions and 17 deletions

View File

@@ -5,7 +5,9 @@ local icon_config = config.get_icon_state()
local api = vim.api
local luv = vim.loop
local M = {}
local M = {
show_ignored = false
}
local path_to_matching_str = require'lib.utils'.path_to_matching_str
@@ -63,7 +65,7 @@ local function gen_ignore_check()
end
return function(path)
return ignore_list[path] == true
return not M.show_ignored and ignore_list[path] == true
end
end