yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
447 stars 43 forks source link

LspSwitchSourceHeader Occasionally, it appears that you need to click on the confirmation to jump to header #510

Closed arashrun closed 2 months ago

arashrun commented 2 months ago

image

When i use clangd, in a cpp source file execute :LspSwitchSourceHeader ,lsp can find the header but until i press enter that the header file do load into buffer. Just like there has something output

yegappan commented 2 months ago

If the length of the header file path name is long, then Vim will display the "Press Enter or type command to continue" message. Do you see this message, if you manually enter the :edit /tmp/my_qtcreator/src/plugins/clangcodemodel/clangdclient.h command?

arashrun commented 2 months ago

Ou, it does when I enter it manually. Is there any way to circumvent this reminder?

arashrun commented 2 months ago

image

I found this. Thanks https://vimhelp.org/message.txt.html#hit-enter