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: 2 additions & 2 deletions autoload/signature/sign.vim
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ function! signature#sign#ToggleDummy(...)
" Arguments: (optional) 0 : force remove
" 1 : force place

let l:place = a:0 ? a:1 : (len(b:sig_marks) + len(b:sig_markers) == 1) && !b:sig_DummyExists
let l:remove = a:0 ? !a:1 : (len(b:sig_marks) + len(b:sig_markers) == 0) && b:sig_DummyExists
let l:place = a:0 ? a:1 : (g:SignatureGutterAlwaysOn ? 1 : len(b:sig_marks) + len(b:sig_markers) == 1) && !b:sig_DummyExists
let l:remove = a:0 ? !a:1 : (g:SignatureGutterAlwaysOn ? 0 : len(b:sig_marks) + len(b:sig_markers) == 0) && b:sig_DummyExists

if (l:place)
sign define Signature_Dummy
Expand Down
7 changes: 7 additions & 0 deletions doc/signature.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ etc. These are not defined by default
When set to 1, will always place markers instead of toggling them


*g:SignatureGutterAlwaysOn*
Boolean, Default: 0

When set to 1, will always display the gutter irrespective of whether there
are currently any marks to show or not.


==============================================================================
4. Contributing *SignatureContributing*

Expand Down
1 change: 1 addition & 0 deletions plugin/signature.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ call signature#utils#Set('g:SignatureErrorIfNoAvailableMarks', 1
call signature#utils#Set('g:SignatureForceRemoveGlobal', 0 )
call signature#utils#Set('g:SignatureForceMarkPlacement', 0 )
call signature#utils#Set('g:SignatureForceMarkerPlacement', 0 )
call signature#utils#Set('g:SignatureGutterAlwaysOn', 0 )
call signature#utils#Set('g:SignatureMap', {} )


Expand Down