diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/lsp_settings.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim new file mode 100644 index 0000000..e3ce81b --- /dev/null +++ b/autoload/lsp_settings.vim @@ -0,0 +1,11 @@ +function! lsp_settings#get(name, key, default) abort + let l:config = get(g:, 'lsp_settings', {}) + if !has_key(l:config, a:name) + return a:default + endif + let l:config = l:config[a:name] + if !has_key(l:config, a:key) + return a:default + endif + return l:config[a:key] +endfunction |