mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Fix YAML
This commit is contained in:
@@ -69,7 +69,13 @@ let s:catalog_path = expand('<sfile>:h:h:h') . '/data/catalog.json'
|
||||
|
||||
function! lsp_settings#utils#load_schemas(name) abort
|
||||
let l:schemas = json_decode(join(readfile(s:catalog_path), "\n"))['schemas']
|
||||
return extend(l:schemas, lsp_settings#get(a:name, 'schemas', []))
|
||||
let l:result = {}
|
||||
for l:v in extend(l:schemas, lsp_settings#get(a:name, 'schemas', []))
|
||||
if has_key(l:v, 'fileMatch')
|
||||
let l:result[l:v['url']] = l:v['fileMatch']
|
||||
endif
|
||||
endfor
|
||||
return l:result
|
||||
endfunction
|
||||
|
||||
function! lsp_settings#utils#term_start(cmd, options) abort
|
||||
|
||||
Reference in New Issue
Block a user