lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
Steiner 2021-01-23T02:09:51.050400Z

hey, guys. I have a question when using clojure-lsp as language server. when typing code like (f x), I found the company-mode wouldn't work, but if I type f, company-mode would work. what the hell ???

Alex 2021-01-26T08:14:38.103400Z

@steiner3044 are you familiar with tools/plugins that will automatically close your parents/brackets for you? That might help keep your code parsable for completion suggestions

Steiner 2021-01-26T08:21:29.103600Z

nope, the configure are all on the image I uploaded

Alex 2021-01-26T17:51:14.107400Z

@steiner3044 check out https://thoughtbot.com/blog/writing-clojure-in-vim which includes some helpful context around editing lisp/clojure code. One useful tool is to install Paredit (or a similar tool) which will help you keep balanced parentheses while adding, editing and deleting code

ericdallo 2021-01-23T02:26:06.050900Z

Hi @steiner3044 we ATM have a issue that we can't complete the code if it's not parseable (a valid clojure code), I'm trying to fix that and I opened this issue recently: https://github.com/clj-commons/rewrite-clj/issues/87

💯 1
Steiner 2021-01-23T02:28:24.051300Z

wow, thank you for your work, I will watch this:slightly_smiling_face:

ericdallo 2021-01-23T02:29:14.051500Z

Thanks 😄

bringe 2021-01-23T02:36:56.051800Z

So I guess this explains an issue I had in my notes with clojure-lsp completions, (that the first time I type something like foo/ I don't see suggestions, but if I backspace the slash and type it again I do)

bringe 2021-01-23T02:37:17.052Z

Something like that at least

ericdallo 2021-01-23T02:38:13.052200Z

yep, that's something I'd love to fix 😅