TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
658 stars 24 forks source link

Cursor jumps when completion_style is phantom #54

Open timfjord opened 2 years ago

timfjord commented 2 years ago

https://user-images.githubusercontent.com/471335/185149237-6847e69a-3cb6-4f4b-a9cc-88aea130de41.mov

timfjord commented 2 years ago

This has to do with the way how Sublime Text renders phantoms.
Currently, there is no way to ensure a phantom will be rendered from the right (see https://github.com/sublimehq/sublime_text/issues/2871 and https://github.com/sublimehq/sublime_text/issues/4575)

We use a workaround, but, unfortunately, it doesn't work all the time