mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Do not append the patterns
This commit is contained in:
@@ -195,7 +195,7 @@ function! lsp_settings#root_uri(name) abort
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let l:dir = lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), extend(l:patterns, g:lsp_settings_root_markers))
|
let l:dir = lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), extend(copy(l:patterns), g:lsp_settings_root_markers))
|
||||||
if empty(l:dir)
|
if empty(l:dir)
|
||||||
return lsp#utils#get_default_root_uri()
|
return lsp#utils#get_default_root_uri()
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user