ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.91k stars 119 forks source link

Equivalent of GoImplements from Fatih/vim-go? #408

Closed adelowo closed 6 months ago

adelowo commented 6 months ago

Hi @ray-x , do you have plans to add some method like GoImplements so implementations of a specific interface can be shown in a list and cycled through

ray-x commented 6 months ago

Not really, as it already supported by gopls you can define your key binding for vim.lsp.buf.implementation(). If you need a UI for it, there are lots of options, e.g. telescope builtin.lsp_implementations, ray-x/navigator.lua ...

ray-x commented 6 months ago

Pushed an update to add GoImplements wrapper based on lsp. As it may be 2nd time someone asked this question.

adelowo commented 6 months ago

thanks!