Conflicting/Colliding LSP and LuaSnip snippets cause duplicate snippet inserts #1357
Answered
by
bew
terminalPoltergeist
asked this question in
Q&A
-
When both LuaSnip and an LSP have a match for a snippet keyword how can I configure it to only use the LSP or only use the LuaSnip match rather than both? CMP still only shows one suggestion for each completion, but when I select one it expands twice. Screen.Recording.2025-06-26.at.13.50.26.mov
|
Beta Was this translation helpful? Give feedback.
Answered by
bew
Jun 26, 2025
Replies: 1 comment 1 reply
-
Well you're expanding the snippet twice, once using You should only use one of those, not both at the same time! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
terminalPoltergeist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well you're expanding the snippet twice, once using
vim.snippet.expand
function and another time withrequire('luasnip').lsp_expand
function...You should only use one of those, not both at the same time!