mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Fix completion
This commit is contained in:
@@ -122,6 +122,7 @@ function! lsp_settings#complete_install(arglead, cmdline, cursorpos) abort
|
||||
call remove(l:settings, '$schema')
|
||||
|
||||
let l:ft = tolower(get(split(&filetype, '\.'), 0, ''))
|
||||
let l:ft = empty(l:ft) ? '_' : l:ft
|
||||
if !has_key(l:settings, l:ft)
|
||||
return []
|
||||
endif
|
||||
|
||||
@@ -42,7 +42,8 @@ function! s:executable(cmd) abort
|
||||
endfunction
|
||||
|
||||
function! s:vim_lsp_installer(ft, ...) abort
|
||||
let l:ft = tolower(split(a:ft, '\.')[0])
|
||||
let l:ft = tolower(get(split(a:ft, '\.'), 0, ''))
|
||||
let l:ft = empty(l:ft) ? '_' : l:ft
|
||||
if !has_key(s:settings, l:ft)
|
||||
return []
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user