Skip to content

Commit df7c5b4

Browse files
committed
Improve kommentary integration example
Make sure to mention that `auto` should be set when configuring kommentary. This causes kommentary to use the `commentstring` setting and not the default ("//" and "/* */"). Documentation improvement from #16
1 parent 203935f commit df7c5b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ its `hook_function` configuration:
203203

204204
```lua
205205
require('kommentary.config').configure_language('typescriptreact', {
206+
single_line_comment_string = 'auto',
207+
multi_line_comment_strings = 'auto',
206208
hook_function = function()
207209
require('ts_context_commentstring.internal').update_commentstring()
208210
end,

0 commit comments

Comments
 (0)