We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to integrate xptemplate into nvim-cmp. However, I cannot figure out how to get a list of possible snippets given an input.
For example: I have typed "i" without double quotes. How can I get all snippets that start with i?
I know about the <c->. However, I want to get the list calling a function.
Thanks
The text was updated successfully, but these errors were encountered:
I'm unsure if the function call way meets your needs: the call will return some characters to emulate user input to trigger a popup menu.
These two functions have to be called in insert mode, and the return value has to be consumed as if they are keystrokes, with <C-r>=:
<C-r>=
fun! ListSnippetsStartingWithPrefix() "{{{ return XPTemplateStart(0, {"forcePum": 1}) endfunction "}}} fun! ListAll() "{{{ return XPTemplateStart(0, {"forcePum": 1, "popupOnly": 1}) endfunction "}}} # i<C-r>=ListAll()<CR> # i<C-r>=ListSnippetsStartingWithPrefix()<CR>
Sorry, something went wrong.
No branches or pull requests
I want to integrate xptemplate into nvim-cmp. However, I cannot figure out how to get a list of possible snippets given an input.
For example: I have typed "i" without double quotes. How can I get all snippets that start with i?
I know about the <c->. However, I want to get the list calling a function.
Thanks
The text was updated successfully, but these errors were encountered: