aboutsummaryrefslogtreecommitdiff
path: root/autoload/lsp_settings/utils.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/lsp_settings/utils.vim')
-rw-r--r--autoload/lsp_settings/utils.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/autoload/lsp_settings/utils.vim b/autoload/lsp_settings/utils.vim
index 940acb1..d342388 100644
--- a/autoload/lsp_settings/utils.vim
+++ b/autoload/lsp_settings/utils.vim
@@ -6,6 +6,7 @@ function! lsp_settings#utils#msg(msg) abort
endfunction
function! lsp_settings#utils#error(msg) abort
+ redraw
echohl Error
echomsg a:msg
echohl None
@@ -19,9 +20,9 @@ function! lsp_settings#utils#group_name(ft) abort
return printf('vim_lsp_suggest_%s', a:ft)
endfunction
-function! lsp_settings#utils#first_one(cmd) abort
- if empty(a:cmd)
+function! lsp_settings#utils#first_one(lines) abort
+ if empty(a:lines)
return ''
endif
- return fnamemodify(split(a:cmd, "\n")[0], ':p')
+ return fnamemodify(split(a:lines, "\n")[0], ':p')
endfunction