-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathNOTICE
More file actions
19 lines (14 loc) · 835 Bytes
/
Copy pathNOTICE
File metadata and controls
19 lines (14 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
neocursor.nvim
===========
The inline ghost-text rendering in lua/neocursor/preview.lua adapts a technique
from two MIT-licensed neovim plugins. Thanks to their authors.
supermaven-nvim https://github.com/supermaven-inc/supermaven-nvim
lua/supermaven-nvim/completion_preview.lua
copilot.lua https://github.com/zbirenbaum/copilot.lua
lua/copilot/suggestion/init.lua
The specific ideas reused:
* one extmark: first line as `virt_text`, remaining lines as `virt_lines`
* `virt_text_pos = "inline"` with an "eol" fallback for control characters
* an undo breakpoint before applying, and a cursor-move guard after accept
No source files were copied verbatim; the renderer was reimplemented against
neocursor's own data flow (range-replacements streamed from Cursor's backend).