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