NoahTheDuke / coc-clojure

coc.nvim plugin for clojure-lsp
Mozilla Public License 2.0
32 stars 3 forks source link

Selectively disengage floating window showing function documentation/signature help #9

Open chase-lambert opened 1 year ago

chase-lambert commented 1 year ago

Sorry if that title is confusing. I appreciate how you are keeping the function signature up as I am completing a function call but sometimes it is getting too obtrusive and blocking my view of the code I want to see surrounding my cursor.

For example, I was just writing some hiccup and I am getting a large floating window telling me how to complete a let binding which is something I would never need anymore. Is there a way to remove the more common functions like let, defn, etc. that I don't need help with?

coc-clojure

chase-lambert commented 1 year ago

Maybe a separate consideration, but what about also having the option of just showing the signature and not the documentation? That could cut down on some of the "noise" when I don't necessarily need to read the docs, I just want to be reminded of the function signature.

But sometimes I do want those docs lol. Basically asking if I can have my cake and eat it too.

NoahTheDuke commented 1 year ago

But sometimes I do want those docs lol. Basically asking if I can have my cake and eat it too.

Hahah Don't we all.

I've experimented with better signature detection, but it's costly to reparse the file or even just scan back and forth. Maybe we could do something like step back until reaching a delimiter and only showing the signature if directly inside a function call? Not showing if in a map, set, vector, etc.

NoahTheDuke commented 1 year ago

I think not showing when current argument is a rest arg could be good

laur89 commented 1 year ago

Sorry to intervene, but @chase-lambert could you please give me an example when coc-clojure pops open the documentation for let as shown above? My system appears to behave differently.