Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autoload/go/doc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ function! s:GodocView(newposition, position, content, package) abort
call popup_clear()

let borderchars = ['-', '|', '-', '|', '+', '+', '+', '+']
if &encoding == "utf-8"
if exists('g:go_borderchars')
let borderchars = g:go_borderchars
elseif &encoding == "utf-8"
let borderchars = [ "═", "║", "═", "║", "╔","╗", "╝", "╚" ]
endif

Expand Down
15 changes: 15 additions & 0 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,21 @@ Use this option to use the popup-window for |K| and |:GoDoc|, rather than the
let g:go_doc_popup_window = 0
<

*'g:go_borderchars'*

Use this option to control the border chars for the popup window, if enabled.
Default is:
>
['-', '|', '-', '|', '+', '+', '+', '+']
<
And if UTF is enabled:
>
[ "═", "║", "═", "║", "╔","╗", "╝", "╚" ]
>
>
let g:go_borderchars = ['─', '│', '─', '│', '┌', '┐', '┘', '└']
<

*'g:go_def_mode'*

Use this option to define the command to be used for |:GoDef|. By default
Expand Down