Files
vim-lsp-mirror/autoload/lsp/utils/workspace_config.vim
Fujiwara Takuya 52539a54ae Show diagnostics in a floating window (#700)
* fix comment

* fix indent

* support diagnostics in a floating window

* doc: add g:lsp_diagnostics_float_{cursor,delay}

* fix vint errors except unused variables

* suppress vint unused variable errors

* lint: use robust operator
2020-02-10 01:44:05 +09:00

15 lines
399 B
VimL

function! lsp#utils#workspace_config#get_value(server_name, item) abort
try
let l:server_info = lsp#get_server_info(a:server_name)
let l:config = l:server_info['workspace_config']
for l:section in split(a:item['section'], '\.')
let l:config = l:config[l:section]
endfor
return l:config
catch
return v:null
endtry
endfunction