Add option to respect wildignore

This commit is contained in:
Andrew Marshall
2013-12-07 00:10:46 -05:00
parent b0bb781fc7
commit a50c571929
2 changed files with 10 additions and 1 deletions

View File

@@ -228,7 +228,7 @@ function! s:TreeDirNode._initChildren(silent)
let dir = self.path
let globDir = dir.str({'format': 'Glob'})
if version >= 703
if version >= 703 && g:NERDTreeWildIgnore
let filesStr = globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
else
let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')