mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Set cmd for cl-lsp
This commit is contained in:
@@ -170,6 +170,16 @@ function! lsp_settings#merge(name, key, default) abort
|
|||||||
return lsp_settings#utils#extend(l:config, a:default)
|
return lsp_settings#utils#extend(l:config, a:default)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! lsp_settings#get(name, key, value) abort
|
||||||
|
if !has_key(g:, 'lsp_settings')
|
||||||
|
let g:lsp_settings = {}
|
||||||
|
endif
|
||||||
|
if !has_key(g:lsp_settings, a:name)
|
||||||
|
let g:lsp_settings[a:name] = {}
|
||||||
|
endif
|
||||||
|
let g:lsp_settings[a:name] = a:value
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! lsp_settings#get(name, key, default) abort
|
function! lsp_settings#get(name, key, default) abort
|
||||||
let l:config = get(g:, 'lsp_settings', {})
|
let l:config = get(g:, 'lsp_settings', {})
|
||||||
if !has_key(l:config, a:name)
|
if !has_key(l:config, a:name)
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ function! LspCheckCommand() abort
|
|||||||
if !filereadable(l:command)
|
if !filereadable(l:command)
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
|
call lsp_settings#set('cl-lsp', 'cmd', l:command)
|
||||||
return l:command
|
return l:command
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user