Skip to content
New issue

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

UltiSnips integration for completion with arguments placeholders? #1593

Open
torimus opened this issue Feb 9, 2025 · 0 comments
Open

UltiSnips integration for completion with arguments placeholders? #1593

torimus opened this issue Feb 9, 2025 · 0 comments

Comments

@torimus
Copy link

torimus commented Feb 9, 2025

What configuration is required for vim-lsp to have item completion including insertion of possible arguments as snippet placeholders?

For example, I have registered pylsp server for Python buffers with vim-lsp.
When I try to complete re.sea symbol with omnifunc, single match is offered

re.search(pattern, string, flags) function

however after i confirm this completion, only the name without arguments is inserted

re.search

Is there an option how to insert possible arguments as well? Similar like vim-go plugin which uses UltiSnips for this goal? To have inserted following instead, with arguments as UltiSnips placeholders:

re.search(<pattern>, <string>, <flags>)

I have all ultisnips, vim-lsp-snippets and vim-lsp-ultisnips installed.
Underlying pylsp server has enabled completion with parameters (pylsp.plugins.jedi_completion.include_params is true).

Any clue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant