From 71503a15d791649fd7464682850763774aa08f63 Mon Sep 17 00:00:00 2001 From: Joe Paterson <1@1.com> Date: Wed, 5 Nov 2025 22:58:50 +0000 Subject: [PATCH] Expose popup borderchars + document --- autoload/go/doc.vim | 4 +++- doc/vim-go.txt | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/autoload/go/doc.vim b/autoload/go/doc.vim index 253637fa9b..45eba1ceb1 100644 --- a/autoload/go/doc.vim +++ b/autoload/go/doc.vim @@ -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 diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 00dfc7797e..e78e2d08c8 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -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