diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-05 01:56:13 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-05 01:57:35 +0800 |
| commit | c4d050e99da5a10ebe83e9229dcbd2b21758f54d (patch) | |
| tree | a9b6c65ef3d1ba494976febbe4e08d90a0c51176 /autoload/utils.vim | |
| parent | 4d3c038cb500de307eb95e6b7c1ec21f075323c7 (diff) | |
Use nvim-notify for showing messages
Diffstat (limited to 'autoload/utils.vim')
| -rw-r--r-- | autoload/utils.vim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim index 217666b..9d84c9b 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -145,25 +145,3 @@ function! utils#Get_titlestr() abort return l:title_str endfunction - -" Log a message using certain highlight group -function! utils#Log(msg, ...) abort - let l:hi = '' - if len(a:000) == 1 - if a:1 ==? 'info' - let l:hi = 'Normal' - elseif a:1 ==? 'warning' - let l:hi = 'WarningMsg' - elseif a:1 ==? 'error' - let l:hi = 'ErrorMsg' - else - echoerr 'Unsupported log level:' a:1 - endif - else - let l:hi = 'Normal' - endif - - execute 'echohl' l:hi - unsilent echomsg a:msg - echohl None -endfunction |
