sublimelsp / LSP

Client implementation of the Language Server Protocol for Sublime Text
https://lsp.sublimetext.io/
MIT License
1.66k stars 183 forks source link

Add support for inline completions (WIP) #2552

Open jwortmann opened 1 week ago

jwortmann commented 1 week ago

Experimental / work in progress

Implementation details are open for discussion and it would be nice to gather some opinions how inline completions should work.

It can be tested with Tabby; for setup see #2520 or the docs description which is added in this PR. Tabby requires a compatible GPU.

For this PR I hijacked the Alt + Enter key binding which is currently used for "insert completion with opposite insert mode", because there aren't really any good key bindings left (everything with Ctrl or Shift is already taken in the ST default key bindings). This was mostly for testing and is up for discussion I guess.

I haven't really looked at the implementations in e.g. LSP-copilot yet. Perhaps there are some improvements that we can adopt.

netlify[bot] commented 1 week ago

Deploy Preview for sublime-lsp ready!

Name Link
Latest commit ef73daa6ab7ffe733b6b3b9971fedec7bc2f68ab
Latest deploy log https://app.netlify.com/sites/sublime-lsp/deploys/673b47b128ea620008f2598e
Deploy Preview https://deploy-preview-2552--sublime-lsp.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

predragnikolic commented 1 week ago

We can't provide SelectedCompletionInfo because it is not available from ST.

This is true.