lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
2021-02-17T13:00:15.167100Z

Hi folks, not sure if this is more an LSP or Vim question but here goes. I just got clojure-lsp working with Neovim/CoC and I’m trying out completion. I’ve mapped inoremap <silent><expr> <c-space> coc#refresh(). Suppose I want to call function foo/bar . When I type (fo and hit ctrl-space I can see foo in the popup list and selecting it leaves me with (foo. I expected to be able to then type / and hit ctrl-space again to select a function in that namespace but it doesn’t seem to do anything. Is this even possible or am I just doing it the wrong way?

borkdude 2021-02-17T13:00:57.167200Z

borkdude 2021-02-17T13:01:23.167700Z

^ Meetup in about 6 hours from now about clojure-lsp with @ericdallo!

1
2
ericdallo 2021-02-17T13:01:51.167800Z

Hey @jkrasnay this is a known clojure-lsp issue which we can't parse non valid clojure code :/ So foo/ will not work, but foo/b should work

ericdallo 2021-02-17T13:03:55.168300Z

@borkdude I think the only dependency to this issue is clj-kondo, not sure how hard would be to fix on kondo though

borkdude 2021-02-17T13:05:44.168700Z

Feel free to post an issue. Since @jkrasnay is sponsoring me, I'll also add the sponsor label to get it prioritized ;)

👍 2
2021-02-17T13:05:46.168900Z

Ah, sorry, should have checked the issues list first. Thanks @ericdallo!

ericdallo 2021-02-17T13:06:59.169300Z

Nice! :)

ericdallo 2021-02-17T13:07:35.169500Z

https://github.com/clj-kondo/clj-kondo/issues/1146

borkdude 2021-02-17T20:03:58.170500Z

Thanks @ericdallo, that was a really nice presentation :)

ericdallo 2021-02-17T20:08:52.171Z

Thank you! I hope you enjoyed ❤️