mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 08:45:43 +08:00
parent
7e1713853a
commit
a7eb011e47
|
@ -112,6 +112,7 @@ endfunction
|
|||
function! s:initCustomOpenArgs() abort
|
||||
let l:defaultOpenArgs = {'file': {'reuse': 'all', 'where': 'p'}, 'dir': {}}
|
||||
let l:customOpenArgs = get(g:, 'NERDTreeCustomOpenArgs', {})
|
||||
return extend(l:customOpenArgs, l:defaultOpenArgs, 'keep')
|
||||
|
||||
if v:false is# s:validateType(l:customOpenArgs, v:t_dict)
|
||||
return l:defaultOpenArgs
|
||||
|
|
Loading…
Reference in New Issue
Block a user