When the lsp item has snippet textEdit, the source inserts CompletionItem.label, which is sometimes invalid to insert.
solution
Create word from insertText or textEdit.newText. This is the same way as vim-lsp or nvim-cmp.
Of course, I took the past problems of creating word like #25 into consideration.
problem
When the lsp item has snippet textEdit, the source inserts
CompletionItem.label
, which is sometimes invalid to insert.solution
Create
word
frominsertText
ortextEdit.newText
. This is the same way as vim-lsp or nvim-cmp. Of course, I took the past problems of creatingword
like #25 into consideration.screenshot
before![ddc-nvim-lsp_pr2](https://user-images.githubusercontent.com/63794197/153603701-ac6858a7-da07-4df7-b93f-d371b6b8a8d7.gif)
@snippet-expantion![ddc-nvim-lsp_pr2_fixed](https://user-images.githubusercontent.com/63794197/153603514-ec65c9a9-4628-4ba1-ab89-8ae3ecafb518.gif)