fix textEdit issue for NCM
NCM currently doesn't recognize textEdit. Accept the whole newText as
completionItem['word'] for now.
@@ -1049,8 +1049,8 @@ class LanguageClient:
match['snippet'] = item['textEdit']['newText'] + '$0'
elif item.get('textEdit', None):
# ignore insertText
- match['word'] = ''
- match['textEdits'].append(item['textEdit'])
+ # TODO: Not fully conforming to LSP
+ match['word'] = item['textEdit']['newText']
matches.append(match)
state["nvim"].call('cm#complete', info['name'], ctx,
