From 4e55330cc3cd7d8ed7d10f0d6cff3b78075cf84b Mon Sep 17 00:00:00 2001 From: Tyler Horth Date: Mon, 19 Jun 2017 21:04:58 -0400 Subject: [PATCH] Change variable name and improve docs --- autoload/neosnippet.vim | 2 +- autoload/neosnippet/parser.vim | 2 +- doc/neosnippet.txt | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 64ca45f..202b774 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -23,7 +23,7 @@ call neosnippet#util#set_default( \ 'g:neosnippet#enable_completed_snippet', 0, \ 'g:neosnippet#enable_complete_done') call neosnippet#util#set_default( - \ 'g:neosnippet#arguments_are_optional', 1) + \ 'g:neosnippet#enable_optional_arguments', 1) call neosnippet#util#set_default( \ 'g:neosnippet#enable_auto_clear_markers', 1) call neosnippet#util#set_default( diff --git a/autoload/neosnippet/parser.vim b/autoload/neosnippet/parser.vim index b635247..aa92b42 100644 --- a/autoload/neosnippet/parser.vim +++ b/autoload/neosnippet/parser.vim @@ -406,7 +406,7 @@ function! neosnippet#parser#_conceal_argument(arg, cnt, args) abort "{{{ let outside = '' let inside = '' if (a:args != '') - if g:neosnippet#arguments_are_optional + if g:neosnippet#enable_optional_arguments let inside = ', ' else let outside = ', ' diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index dbd390e..354162a 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -217,13 +217,15 @@ g:neosnippet#enable_completed_snippet The default value is 0. - *g:neosnippet#arguments_are_optional* -g:neosnippet#arguments_are_optional - If this variable is not 0, neosnippet expanded function - arguments will conceal commas. + *g:neosnippet#enable_optional_arguments* +g:neosnippet#enable_optional_arguments + If this variable is not 0, neosnippet will conceal commas in + expanded arguments from completed snippets. Useful for languages where arguments are optional by default. + Note: For use with |g:neosnippet#enable_completed_snippet| = 1 + The default value is 1. *g:neosnippet#enable_auto_clear_markers*