joaotavora/eglot

eglot+gopls is ... off by one expression?

Cerebus opened this issue · 0 comments

I really don't know what's happening here, and I'll try to generate a minimal example, but by screenshots:

  • With a previous expression of the same kind, autocomplete suggestions are correct:
    with-previous-expression

  • Without a previous expression...
    no-previous-expression

I tried mucking about with eglot--pos-to-lsp-position but I don't really know if that's the problem. I'll also generate a minimal example when I have a chance, but mainly looking for feedback on whether this is an eglot or gopls problem.