Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chase-lambert opened this issue Mar 18, 2023 · 4 comments

Comments

@chase-lambert
Copy link

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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

@laur89
Copy link
Contributor

laur89 commented May 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants