Skip to content

Commit 3d4daa4

Browse files
authored
Show only first line while popup visible (#731)
1 parent 55e8805 commit 3d4daa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/lsp/omni.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
259259
elseif !empty(get(a:item, 'insertText', ''))
260260
" if plain-text insertText, use it.
261261
let l:word = a:item['insertText']
262-
if !empty(l:word)
263-
let l:word = split(l:word, '\n')[0]
264-
endif
265262
elseif has_key(a:item, 'textEdit')
266263
let l:word = lsp#utils#make_valid_word(a:item['label'])
267264
endif
265+
if !empty(l:word)
266+
let l:word = split(l:word, '\n')[0]
267+
endif
268268
if empty(l:word)
269269
let l:word = a:item['label']
270270
endif

0 commit comments

Comments
 (0)