Skip to content

Commit 75b0a50

Browse files
committed
doc: use double border around doc popup window
1 parent 0e0d187 commit 75b0a50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/go/doc.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ function! s:GodocView(newposition, position, content, package) abort
9494

9595
let borderchars = ['-', '|', '-', '|', '+', '+', '+', '+']
9696
if &encoding == "utf-8"
97-
let borderchars = ['', '', '', '', '', '', '', '']
97+
let borderchars = [ "", "", "", "", "","", "", "" ]
9898
endif
99+
99100
call popup_atcursor(split(a:content, '\n'), {
100101
\ 'padding': [1, 1, 1, 1],
101102
\ 'borderchars': borderchars,
@@ -127,6 +128,7 @@ function! s:GodocView(newposition, position, content, package) abort
127128
\ 'width': width,
128129
\ 'height': height,
129130
\ 'style': 'minimal',
131+
\ 'border': 'double',
130132
\ }
131133
call nvim_open_win(buf, v:true, opts)
132134
setlocal nomodified nomodifiable filetype=godoc

0 commit comments

Comments
 (0)