bobbicodes / bobbi-lisp

Interactive Lisp environment for learning Clojure
https://bobbicodes.github.io/bobbi-lisp/
0 stars 0 forks source link

[editor] Autocomplete/docs #17

Open bobbicodes opened 11 months ago

bobbicodes commented 11 months ago

See: https://codemirror.net/examples/autocompletion/

We're already using the basic-setup package which has support for this built-in. It just needs to be configured.

I actually hesitate with this because I personally hate things popping up in my editor. I use VSCode even though it drives me crazy much of the time, especially when I'm having an intense debugging session and am distracted by the editor constantly throwing things in my face and I can't put my cursor anywhere without things covering up my code. I especially hate how it steals your cursor and I have to stop and make the stupid tooltip go away before I can continue beating my head against the desk. Fucking hostile.

But I'm conflicted because at the same time it's extremely helpful to have documentation tooltips instantly available to see what args a function takes, etc.

So if and when I decide to add these things, I'm going to be very careful to make sure it's not invasive. From what I've seen in other Codemirror examples, it seems very good. Having a hotkey to enable/disable them would be wonderful.