Skip to content

Commit

Permalink
Show only first line while popup visible (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn authored Feb 13, 2020
1 parent 20d1cf3 commit 9962ef9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/lsp/omni.vim
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
elseif !empty(get(a:item, 'insertText', ''))
" if plain-text insertText, use it.
let l:word = a:item['insertText']
if !empty(l:word)
let l:word = split(l:word, '\n')[0]
endif
elseif has_key(a:item, 'textEdit')
let l:word = lsp#utils#make_valid_word(a:item['label'])
endif
Expand Down

0 comments on commit 9962ef9

Please sign in to comment.