feature update: use cmp built in types and cursor; add pro tip to readme #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cmp_update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
I previously made a PR (accepted) which introduced cmp source integration and a couple of convenience methods. #28
This pull request contains a minor update to make better use of built in cmp types and multi line markers, cursor, etc. I had added my own marker previously, so it doesn't change much. But I feel it is cleaner this way.
I also tried to simulate the built in continuous inline completions with cmp and came up with a solution which has been working nicely for me for the last couple of days now, so I thought I could share this as a "pro tip" in the README, although this may perhaps be better suited for a wiki in the future.
The new README suggestion is demonstrated in this video:
https://github.com/supermaven-inc/supermaven-nvim/assets/87830/9871857a-56d3-44f9-abfc-b727f01d3565
Please let me know if there is anything else I need to address before accepting this pull request.
Type of change
How Has This Been Tested?
I have tested it thoroughly on Lua and TypeScript projects, and it works as expected, providing both single and multi-line suggestions.
Configuration:
nvim --version): 0.9.5Checklist
@victorw-xyz fwiw, I also took the liberty of listing Supermaven in the official list of cmp sources: https://github.com/hrsh7th/nvim-cmp/wiki/List-of-sources
would be nice if this could be merged in
Sorry it took so long to address this PR - regarding the protip, I think until we have a well structured
README.mdperhaps with a table of contents etc. we should avoid making large additions there unless they are relevant to most everyone trying to go through the document@kaiiserni Thank you for your PR, could you share here the "pro tip" or some code snippets ? I am using supermaven as a cmp source and would love a better workflow !
@williamgoulois It remains in the commit history
"Pro tip: If you want to simulate continuous suggestions similar to the built in inline completions (which always jumps to the next suggestion); you can achieve this with a timer/poller."