diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-30 00:45:13 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-30 00:45:13 +0900 |
commit | 61dccb88b0d0fd1df2ee3778a7c96210689e8c59 (patch) | |
tree | ce819fd074305dbeb558e8c1e0be45edb186ac53 /autoload | |
parent | f14f0f7cb62855844fcdac60911c279813d3cd05 (diff) | |
download | vim-lsp-settings-61dccb88b0d0fd1df2ee3778a7c96210689e8c59.tar.gz vim-lsp-settings-61dccb88b0d0fd1df2ee3778a7c96210689e8c59.tar.bz2 vim-lsp-settings-61dccb88b0d0fd1df2ee3778a7c96210689e8c59.zip |
Add tests
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/lsp_settings/utils.vim | 7 |
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 |