@@ -127,27 +127,29 @@ CommentConfig *comment.config.CommentConfig*
127
127
Plugin's configuration
128
128
129
129
Fields: ~
130
- {padding} (boolean|fun():boolean) Controls space between the comment
131
- and the line (default: 'true' )
132
- {sticky} (boolean) Whether cursor should stay at the
133
- same position. Only works in NORMAL
134
- mode mappings (default: 'true' )
135
- {ignore} (string|fun():string) Lua pattern used to ignore lines
136
- during (un)comment (default: 'nil' )
137
- {mappings} (Mappings| false) Enables | comment.keybindings|
138
- NOTE: If given 'false' , then the
139
- plugin won't create any mappings
140
- {toggler} (Toggler) See | comment.config.Toggler |
141
- {opleader} (Opleader) See | comment.config.Opleader |
142
- {extra} (ExtraMapping) See | comment.config.ExtraMapping |
143
- {pre_hook} (fun(c:CommentCtx):string) Function to call before (un)comment.
144
- It is called with a {ctx} argument
145
- of type | comment.utils.CommentCtx |
146
- (default: 'nil' )
147
- {post_hook} (fun(c:CommentCtx)) Function to call after (un)comment.
148
- It is called with a {ctx} argument
149
- of type | comment.utils.CommentCtx |
150
- (default: 'nil' )
130
+ {padding} (boolean|fun():boolean) Controls space between the comment
131
+ and the line (default: 'true' )
132
+ {sticky} (boolean) Whether cursor should stay at the
133
+ same position. Only works in NORMAL
134
+ mode mappings (default: 'true' )
135
+ {only_block_ft} (string[]) Always use block comments
136
+ (default: '{}')
137
+ {ignore} (string|fun():string) Lua pattern used to ignore lines
138
+ during (un)comment (default: 'nil' )
139
+ {mappings} (Mappings| false) Enables | comment.keybindings|
140
+ NOTE: If given 'false' , then the
141
+ plugin won't create any mappings
142
+ {toggler} (Toggler) See | comment.config.Toggler |
143
+ {opleader} (Opleader) See | comment.config.Opleader |
144
+ {extra} (ExtraMapping) See | comment.config.ExtraMapping |
145
+ {pre_hook} (fun(c:CommentCtx):string) Function to call before (un)comment.
146
+ It is called with a {ctx} argument
147
+ of type | comment.utils.CommentCtx |
148
+ (default: 'nil' )
149
+ {post_hook} (fun(c:CommentCtx)) Function to call after (un)comment.
150
+ It is called with a {ctx} argument
151
+ of type | comment.utils.CommentCtx |
152
+ (default: 'nil' )
151
153
152
154
153
155
Mappings *comment.config.Mappings*
0 commit comments