Using LSP for completions

17 views
Skip to first unread message

Ville M. Vainio

unread,
Aug 8, 2026, 4:50:13 AM (3 days ago) Aug 8
to leo-editor
In the "modernization" theme, I created an Idea issue for leo to use LSP so that it could use Ty to get completion suggestions and "error squigglies" in the panels while editing.

LSP is what vscode and most modern editors use as their code intelligence, maybe Leo could quickly "catch up" with them if it supported this

Ville M. Vainio

unread,
Aug 8, 2026, 7:16:56 AM (3 days ago) Aug 8
to leo-editor
Some squiggles to whet the appetite (mouse is over "1")
 image.png

Ville M. Vainio

unread,
Aug 8, 2026, 7:24:23 AM (3 days ago) Aug 8
to leo-editor
More hover, now without error to dig type info from LSP:

image.png

I think this is pretty cool, and could be worth more than completions even (when understanding existing code)

Ville M. Vainio

unread,
Aug 8, 2026, 7:55:02 AM (3 days ago) Aug 8
to leo-editor
I think the spike is ready for wider testing, includes instructions: https://github.com/leo-editor/leo-editor/pull/4874

It may rock your socks off :-). Tested only on LeoPyRef.leo

Thomas Passin

unread,
Aug 8, 2026, 8:54:06 AM (3 days ago) Aug 8
to leo-editor
Let's make it optional. I hate popups when I'm working so I'd like to be able to turn them off or on, preferably without needing to change myLeoSettings and restart.

Ville M. Vainio

unread,
Aug 8, 2026, 8:57:34 AM (3 days ago) Aug 8
to leo-e...@googlegroups.com
Those are from mouse hover, not normal typing

--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/b016dc7d-ff82-4d1e-ba6a-3ee385ccd850n%40googlegroups.com.

Edward K. Ream

unread,
Aug 8, 2026, 9:48:17 AM (2 days ago) Aug 8
to leo-editor
I think this is a great idea.

Edward 

Thomas Passin

unread,
Aug 8, 2026, 9:57:20 AM (2 days ago) Aug 8
to leo-editor
On Saturday, August 8, 2026 at 8:57:34 AM UTC-4 Ville M. Vainio wrote:
Those are from mouse hover, not normal typing

I understand but my mouse is likely to hover anywhere. E.g., I have tool tips turned off. 
Reply all
Reply to author
Forward
0 new messages