We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ae891 commit 084c29fCopy full SHA for 084c29f
1 file changed
autoload/quickui/preview.vim
@@ -3,7 +3,7 @@
3
" preview.vim -
4
"
5
" Created by skywind on 2020/01/11
6
-" Last Modified: 2020/01/11 11:30:20
+" Last Modified: 2021/12/06 21:45
7
8
"======================================================================
9
@@ -155,6 +155,9 @@ function! quickui#preview#display(content, opts)
155
if has_key(a:opts, 'syntax')
156
let cmdlist += ['setl ft=' . fnameescape(a:opts.syntax) ]
157
endif
158
+ if has('nvim')
159
+ let cmdlist += ['setlocal scrolloff=0']
160
+ endif
161
call setbufvar(winbufnr(winid), '__quickui_cursor__', cursor)
162
call quickui#core#win_execute(winid, cmdlist)
163
call quickui#utils#update_cursor(winid)
0 commit comments