Skip to content

Commit fde21ef

Browse files
committed
Use minimal floating window style for docs
1 parent 966b0ef commit fde21ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

autoload/OmniSharp/popup.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,20 @@ function s:NvimGetOptions() abort
161161
endfunction
162162

163163
function! s:NvimOpen(what, opts) abort
164+
let config = {
165+
\ 'focusable': v:false
166+
\}
164167
if type(a:what) == v:t_number
165168
let bufnr = a:what
166169
let lines = getbufline(bufnr, 1, '$')
167170
else
168171
let bufnr = nvim_create_buf(v:false, v:true)
169172
call setbufline(bufnr, 1, a:what)
170173
let lines = a:what
174+
let config.style = 'minimal'
171175
endif
172176
let content_height = len(lines)
173177
let position = get(g:, 'OmniSharp_popup_position', 'atcursor')
174-
let config = {
175-
\ 'focusable': v:false
176-
\}
177178
" Positions 'peek' and 'full' only apply to file buffers, not documentation
178179
" buffers
179180
if type(a:what) == v:t_number && position ==? 'peek'

0 commit comments

Comments
 (0)