Skip to content

Commit f9ed1c7

Browse files
subnutroxma
authored andcommitted
Improved the floating window
Now it is possible to scroll the preview window using a mouse. Also, the floating window is now of 'minimal' style to prevent characters wrapping to the next line (which previously happened with signcolumn=yes) Closes #16
1 parent 3c2e230 commit f9ed1c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

autoload/float_preview.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func! s:check(...)
9393
endif
9494
let prevw_height = float_preview#display_height(info, prevw_width) + 1
9595

96-
let opt = { 'focusable': v:false,
96+
let opt = { 'focusable': v:true,
9797
\ 'width': prevw_width,
9898
\ 'height': prevw_height
9999
\}
@@ -121,6 +121,7 @@ func! s:check(...)
121121
let opt.col = 0
122122
else
123123
let opt.relative = 'editor'
124+
let opt.style = 'minimal'
124125

125126
if s:event.scrollbar
126127
let right_avail_col = s:event.col + s:event.width + 1

0 commit comments

Comments
 (0)