Fix root_uri_patterns

This commit is contained in:
Yasuhiro Matsumoto
2020-02-20 00:18:27 +09:00
parent e55fa57320
commit 0e71903b66
3 changed files with 25 additions and 7 deletions

View File

@@ -345,15 +345,15 @@ function! s:vim_lsp_suggest_plugin() abort
let l:ext = expand('%:e')
for l:ft in keys(s:settings)
for l:server in s:settings[l:ft]
if !has_key(l:server, 'vim-plugin')
if !has_key(l:server, 'vim_plugin')
continue
endif
if index(l:server['vim-plugin']['extensions'], l:ext) == -1
if index(l:server['vim_plugin']['extensions'], l:ext) == -1
continue
endif
redraw
echohl Directory
echomsg printf('Please install vim-plugin "%s" to enable Language Server', l:server['vim-plugin']['name'])
echomsg printf('Please install vim-plugin "%s" to enable Language Server', l:server['vim_plugin']['name'])
echohl None
return
endfor