removing literal dictionary syntax, as it is not included in nvim-4.4
This commit is contained in:
parent
d2990d7bae
commit
747ad9b804
1 changed files with 16 additions and 16 deletions
|
|
@ -54,14 +54,14 @@ function! vimspector#internal#balloon#CreateTooltip(is_hover, ...)
|
||||||
call nvim_buf_set_lines(buf, 0, -1, v:true, body)
|
call nvim_buf_set_lines(buf, 0, -1, v:true, body)
|
||||||
|
|
||||||
" default the dimensions for now. they can be easily overwritten later
|
" default the dimensions for now. they can be easily overwritten later
|
||||||
let opts = #{
|
let opts = {
|
||||||
\ relative: 'cursor',
|
\ 'relative': 'cursor',
|
||||||
\ width: 50,
|
\ 'width': 50,
|
||||||
\ height: 5,
|
\ 'height': 5,
|
||||||
\ col: 0,
|
\ 'col': 0,
|
||||||
\ row: 1,
|
\ 'row': 1,
|
||||||
\ anchor: 'NW',
|
\ 'anchor': 'NW',
|
||||||
\ style: 'minimal'
|
\ 'style': 'minimal'
|
||||||
\ }
|
\ }
|
||||||
let s:float_win = nvim_open_win(buf, 0, opts)
|
let s:float_win = nvim_open_win(buf, 0, opts)
|
||||||
call nvim_win_set_option(s:float_win, 'wrap', v:true)
|
call nvim_win_set_option(s:float_win, 'wrap', v:true)
|
||||||
|
|
@ -117,14 +117,14 @@ function! vimspector#internal#balloon#CreateTooltip(is_hover, ...)
|
||||||
call vimspector#internal#balloon#closeCallback()
|
call vimspector#internal#balloon#closeCallback()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let config = #{
|
let config = {
|
||||||
\ filter: "MyFilter",
|
\ 'filter': "MyFilter",
|
||||||
\ cursorline: 1,
|
\ 'cursorline': 1,
|
||||||
\ wrap: 1,
|
\ 'wrap': 1,
|
||||||
\ filtermode: "n",
|
\ 'filtermode': "n",
|
||||||
\ maxwidth: 50,
|
\ 'maxwidth': 50,
|
||||||
\ maxheight: 5,
|
\ 'maxheight': 5,
|
||||||
\ scrollbar: 1,
|
\ 'scrollbar': 1,
|
||||||
\ }
|
\ }
|
||||||
if a:is_hover
|
if a:is_hover
|
||||||
let config['mousemoved'] = "word"
|
let config['mousemoved'] = "word"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue