From be347354f073a3f8f738add4a12281a1d78813ef Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 18 Jan 2020 23:59:16 +0900 Subject: Pass name and key --- autoload/lsp_settings.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 60d29d3..fbe3210 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -5,7 +5,7 @@ function! lsp_settings#get(name, key, default) abort if !has_key(l:config, a:name) if !has_key(l:config, '*') if type(a:default) ==# v:t_func - return a:default() + return a:default(a:name, a:key) endif return a:default endif @@ -15,7 +15,7 @@ function! lsp_settings#get(name, key, default) abort endif if !has_key(l:config, a:key) if type(a:default) ==# v:t_func - return a:default() + return a:default(a:name, a:key) endif return a:default endif -- cgit v1.2.3-54-g00ecf