Open ChrisAmelia opened 3 years ago
Will this still happen when using the newest commit?
I think it's neovim or completion-nvim's problem.
The completion-nvim will extract completed_item.word that cleaned by vim.lsp.util.parse_snippet
.
But vim.lsp.util.parse_snippet
is
$TM_SELECTED_TEXT
, etc.\n
In coc.nvim, the extracting completed_item.word by getValidWord
utility (https://github.com/neoclide/coc.nvim/blob/9f9d8a32c4669ba6895e801812c60153b94e22dd/src/util/complete.ts#L77)
When the completion_item.insertText
is method($1, $2)$0
, the getValidWord
will extract method
.
Or vim-lamp just use completion_item.label
as completed_item.word
when the item is snippet kind.
Will this still happen when using the newest commit?
Yes, it still happens.
My testing minimal init.vim
How to reproduce
Test.java
with:Place the cursor below
error this is not a valid code;
and typeif
to display the snippet completion menu.Select one of the snippets proposed, there should be 4 snippets:
The above error doesn't always to appear, it seems to be quite erratic but testing the 4 options should make it happen.
Expected behavior TM message doesn't appear.