mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Show only first line while popup visible (#714)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user