Skip to content

Commit 966b0ef

Browse files
committed
Do not use config.style = 'minimal'
1 parent 76c93e1 commit 966b0ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

autoload/OmniSharp/popup.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ function! s:NvimOpen(what, opts) abort
172172
let content_height = len(lines)
173173
let position = get(g:, 'OmniSharp_popup_position', 'atcursor')
174174
let config = {
175-
\ 'focusable': v:false,
176-
\ 'style': 'minimal'
175+
\ 'focusable': v:false
177176
\}
178177
" Positions 'peek' and 'full' only apply to file buffers, not documentation
179178
" buffers
@@ -207,8 +206,10 @@ function! s:NvimOpen(what, opts) abort
207206
let s:nvim_window_options = get(s:, 'nvim_window_options', {})
208207
let s:nvim_window_options[winid] = {}
209208
for opt in keys(options)
210-
let s:nvim_window_options[winid][opt] = nvim_win_get_option(winid, opt)
211-
call nvim_win_set_option(winid, opt, options[opt])
209+
if nvim_win_get_option(winid, opt) != options[opt]
210+
let s:nvim_window_options[winid][opt] = nvim_win_get_option(winid, opt)
211+
call nvim_win_set_option(winid, opt, options[opt])
212+
endif
212213
endfor
213214
call nvim_set_current_win(winid)
214215
if exists('calculatingHeight')

0 commit comments

Comments
 (0)