vim-go autocompletion / help for struct members / function parameters

739 views
Skip to first unread message

Johann Höchtl

unread,
Feb 10, 2020, 1:43:34 PM2/10/20
to golang-nuts
I have a question about vim-go. Sorry if this is the wrong place, but opening a github issue feels wrong for that.

I use vim-go autocompletion (a lot) in companion with gopls. I invoke it manually with ^C^O (omnicomplete) which is tied to gopls. I am not using deoplete.

However, what I miss is:

I am in the middle of


x:= mystruct{ // <--- what members does mystruct offer? ^X^O is not helpful. Find myself gd - ing to the definition

OR

myfunc(  // <-- what parameters in what order does myfunc expect?. Find myself gd - ing to the definition



Does vim-go / autocompletion / <insert vim-go supported editing plugin here> offer me help to quicker identify struct members or function parameters?


Thank you!

Johann Höchtl

unread,
Feb 16, 2020, 8:38:30 AM2/16/20
to golang-nuts
Anybody? My question was not meant to criticize vim-go or gopls, if they can't (yet) do what I want those tools to support me, but a honest questions if I do not know how to use the tools.

Jan Mercl

unread,
Feb 17, 2020, 9:22:23 AM2/17/20
to Johann Höchtl, golang-nuts
On Sun, Feb 16, 2020 at 9:38 AM Johann Höchtl <johann....@gmail.com> wrote:
>
> Anybody? My question was not meant to criticize vim-go or gopls, if they can't (yet) do what I want those tools to support me, but a honest questions if I do not know how to use the tools.

I no more use vim-go, I've switched from vim-go to govim months ago,
so the only thing I can say is that AFAICT, both cases work for me in
govim. Struct fields are shown using <c-X><c-O>, function arguments
documentation is available in a popup that's activated on mouse
hovering over the function name.

Johann Höchtl

unread,
Feb 17, 2020, 1:14:38 PM2/17/20
to golang-nuts


Am Montag, 17. Februar 2020 10:22:23 UTC+1 schrieb Jan Mercl:
I would give govim a try, as of now it's vim only and I look forward to neovims tree-sitter. But having gocode vim plugin is intriguing.
Reply all
Reply to author
Forward
0 new messages