Language Server Protocol (LSP) plugin using Vim9 script

43 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Jan 4, 2021, 12:09:11 AM1/4/21
to vim_dev, vim...@googlegroups.com
Hi all,

I have created a language server protocol (LSP) client plugin using
the Vim9 script features. It is available at:


You need the latest Vim to use this plugin. Note that this is still a
work in progress. Any comments, suggestions, bug reports and
PRs are welcome.

Thanks,
Yegappan

Dominique Pellé

unread,
Jan 14, 2021, 6:03:38 PM1/14/21
to vim_dev
Thanks for that. I hope to find time to try it soon.

Does LSP allow to find other implementations of a
c++ virtual method? I.e, with cursor on a virtual method (possibly
pure virtual), find all the implementations in derived classes.

I have been using rtags with vim-rtags and it allows that.

Regards
Dominique

Yegappan Lakshmanan

unread,
Jan 14, 2021, 8:33:25 PM1/14/21
to vim_dev
Hi Dominique,

On Thu, Jan 14, 2021 at 3:03 PM Dominique Pellé <dominiq...@gmail.com> wrote:
Yegappan Lakshmanan wrote:

> Hi all,
>
> I have created a language server protocol (LSP) client plugin using
> the Vim9 script features. It is available at:
>
> https://github.com/yegappan/lsp
>
> You need the latest Vim to use this plugin. Note that this is still a
> work in progress. Any comments, suggestions, bug reports and
> PRs are welcome.
>
> Thanks,
> Yegappan

Thanks for that. I hope to find time to try it soon.

Does LSP allow to find other implementations of a
c++ virtual method?  I.e, with cursor on a virtual method (possibly
pure virtual), find all the implementations in derived classes.


LSP allows you to list or highlight all the references to a symbol,
to fuzzy search a symbol across the workspace and to jump to the
definition/declaration/implementation of a symbol. I looked at clangd
LSP support to see whether it can list the implementation of a virtual
method across all the derived classes. I didn't see the support for that:

The following clangd feature request discusses this limitation:

Regards,
Yegappan 

Dominique Pellé

unread,
Jan 15, 2021, 2:49:15 AM1/15/21
to vim_dev
Thanks for finding this. Indeed, https://github.com/clangd/clangd/issues/25
is exactly what I would like to see.

Regards
Dominique
Reply all
Reply to author
Forward
0 new messages