Cursor position in cmp source #1372
-
I'm making a custom source, and I'd like the cursor to be inside of the brackets when I accept a completion. How do I do this? |
Beta Was this translation helpful? Give feedback.
Answered by
Saghen
Mar 2, 2025
Replies: 2 comments 2 replies
-
@sweetboss12512 yes, you can use
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use a snippet like insertTextFormat = vim.lsp.protocol.InsertTextFormat.Snippet
insertText = "example($0)" -- or textEdit.newText |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sweetboss12512
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a snippet like