fix macos

This commit is contained in:
kyazdani42
2020-02-29 09:41:34 +01:00
parent 4d6bf5fd0b
commit c31cceaff6

View File

@@ -20,9 +20,10 @@ local Tree = {}
local IGNORE_LIST = ""
local UNIX = api.nvim_call_function('has', { 'unix' }) == 1
local MACOS = api.nvim_call_function('has', { 'macunix' }) == 1
-- --ignore does not work with mac ls
if UNIX and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
if UNIX and not MACOS and api.nvim_call_function('exists', { 'g:lua_tree_ignore' }) == 1 then
local ignore_patterns = api.nvim_get_var('lua_tree_ignore')
if type(ignore_patterns) == 'table' then
for _, pattern in pairs(ignore_patterns) do