Update g:ycm_csharp_insert_namespace_expr documention

This commit is contained in:
Spencer G. Jones 2015-09-11 17:14:09 -06:00
parent 391b3df3b7
commit df73ca6b66
2 changed files with 22 additions and 14 deletions

View File

@ -1367,14 +1367,18 @@ Default: `0`
### The `g:ycm_csharp_insert_namespace_expr` option ### The `g:ycm_csharp_insert_namespace_expr` option
If you desired to control where YCM inserts namespaces, set this option. When By default, when YCM inserts a namespace, it will insert the `using` statement
YCM inserts a namespace, by default, it will insert the namespace under the under the nearest `using` statement. You may prefer that the `using` statement is
nearest using statement. When this option is set, YCM will instead set the inserted somewhere, for example, to preserve sorting. If so, you can set this
global variable `g:ycm_namespace_to_insert` to the namespace to insert, and option to override this behaviour.
then evaluate this option's value as an expression. The expression is
responsible for inserting the namespace.
Default: `''` When this option is set, instead of inserting the `using` statement itself, YCM
will set the global variable `g:ycm_namespace_to_insert` to the namespace to
insert, and then evaluate this option's value as an expression. The option's
expression is responsible for inserting the namespace - the default insertion
will not occur.
Default: ''
let g:ycm_csharp_insert_namespace_expr = '' let g:ycm_csharp_insert_namespace_expr = ''

View File

@ -1584,14 +1584,18 @@ Default: '0'
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
The *g:ycm_csharp_insert_namespace_expr* option The *g:ycm_csharp_insert_namespace_expr* option
If you desired to control where YCM inserts namespaces, set this option. When By default, when YCM inserts a namespace, it will insert the 'using' statement
YCM inserts a namespace, by default, it will insert the namespace under the under the nearest 'using' statement. You may prefer that the 'using' statement
nearest using statement. When this option is set, YCM will instead set the is inserted somewhere, for example, to preserve sorting. If so, you can set
global variable 'g:ycm_namespace_to_insert' to the namespace to insert, and this option to override this behaviour.
then evaluate this option's value as an expression. The expression is
responsible for inserting the namespace.
Default: "''" When this option is set, instead of inserting the 'using' statement itself, YCM
will set the global variable 'g:ycm_namespace_to_insert' to the namespace to
insert, and then evaluate this option's value as an expression. The option's
expression is responsible for inserting the namespace - the default insertion
will not occur.
Default: ''
> >
let g:ycm_csharp_insert_namespace_expr = '' let g:ycm_csharp_insert_namespace_expr = ''
< <