From c31cceaff60a975483718a90de055a77e1a5437c Mon Sep 17 00:00:00 2001 From: kyazdani42 Date: Sat, 29 Feb 2020 09:41:34 +0100 Subject: [PATCH] fix macos --- lua/lib/state.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lib/state.lua b/lua/lib/state.lua index 5c2e3dd7..aeeb8773 100644 --- a/lua/lib/state.lua +++ b/lua/lib/state.lua @@ -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