Use a fancy single line border in vim popup when we can

This commit is contained in:
Ben Jackson 2021-01-08 21:59:02 +00:00
commit 64f2c8eb01

View file

@ -221,6 +221,11 @@ function! vimspector#internal#balloon#CreateTooltip(is_hover, ...)
\ 'border': [],
\ 'padding': [ 0, 1, 0, 1]
\ }
if &ambiwidth ==# 'single' && &encoding == 'utf-8'
let config['borderchars'] = [ '─', '│', '─', '│', '╭', '╮', '╯', '╰' ]
endif
if a:is_hover
let config['filter'] = "MouseFilter"
let config['mousemoved'] = [0, 0, 0]