We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8a357 commit cae9778Copy full SHA for cae9778
autoload/coc/util.vim
@@ -325,10 +325,14 @@ function! s:variables(bufnr) abort
325
return variables
326
endfunction
327
328
-function! coc#util#root_patterns()
+function! coc#util#root_patterns() abort
329
return coc#rpc#request('rootPatterns', [bufnr('%')])
330
331
332
+function! coc#util#get_config(key) abort
333
+ return coc#rpc#request('getConfig', [a:key])
334
+endfunction
335
+
336
function! coc#util#on_error(msg) abort
337
echohl Error | echom '[coc.nvim] '.a:msg | echohl None
338
0 commit comments