We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e8805 commit 3d4daa4Copy full SHA for 3d4daa4
autoload/lsp/omni.vim
@@ -259,12 +259,12 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
259
elseif !empty(get(a:item, 'insertText', ''))
260
" if plain-text insertText, use it.
261
let l:word = a:item['insertText']
262
- if !empty(l:word)
263
- let l:word = split(l:word, '\n')[0]
264
- endif
265
elseif has_key(a:item, 'textEdit')
266
let l:word = lsp#utils#make_valid_word(a:item['label'])
267
endif
+ if !empty(l:word)
+ let l:word = split(l:word, '\n')[0]
+ endif
268
if empty(l:word)
269
let l:word = a:item['label']
270
0 commit comments