]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: tidy echom to InfoMsg
authorshane.xb.qian <shane.qian@foxmail.com>
Sun, 16 Apr 2023 02:27:49 +0000 (10:27 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Sun, 16 Apr 2023 19:21:37 +0000 (03:21 +0800)
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
autoload/lsp/inlayhints.vim
autoload/lsp/lsp.vim
autoload/lsp/util.vim

index b10c722a5c156d01f5f258c61cad50fa01698528..9b07343bf66cf920de543cd47131bc4c4c2f6ef5 100644 (file)
@@ -27,8 +27,6 @@ export def InlayHintsReply(lspserver: dict<any>, inlayHints: any)
     return
   endif
 
-  #echomsg inlayHints->string
-
   InlayHintsClear(lspserver)
 
   if mode() !=# 'n'
index 2772ff533986458c847f0c8a5c4e5d596747c638..8041e924b930889b587139fee8b087d7c54ecb91 100644 (file)
@@ -234,7 +234,7 @@ def ShowServer(arg: string)
     :setlocal nomodified
     :setlocal nomodifiable
   else
-    :echomsg lines[0]
+    util.InfoMsg(lines[0])
   endif
 enddef
 
index 39a3a478d4d9529872efc81306bd0392302aa423..d273884077baba6402b5ab7910c8a5799c117814 100644 (file)
@@ -1,5 +1,12 @@
 vim9script
 
+# Display an info message
+export def InfoMsg(msg: string)
+  :echohl Question
+  :echomsg $'Info: [Lsp] {msg}'
+  :echohl None
+enddef
+
 # Display a warning message
 export def WarnMsg(msg: string)
   :echohl WarningMsg