mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-22 08:47:15 +09:00
Minor fix for comment plugin and migrating to use "comment.type" option (#3424)
Fixing comment plugin not using user settings when overriding default setting, Migrating comment plugin to use "comment.type" option instead
This commit is contained in:
@@ -80,10 +80,10 @@ but it is only available for certain filetypes:
|
||||
* zsh: `# %s`
|
||||
|
||||
If your filetype is not available here, you can simply modify
|
||||
the `commenttype` option:
|
||||
the `comment.type` option:
|
||||
|
||||
```
|
||||
set commenttype "/* %s */"
|
||||
set comment.type "/* %s */"
|
||||
```
|
||||
|
||||
Or in your `settings.json`:
|
||||
@@ -91,7 +91,12 @@ Or in your `settings.json`:
|
||||
```json
|
||||
{
|
||||
"*.c": {
|
||||
"commenttype": "/* %s */"
|
||||
"comment.type": "/* %s */"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
`commenttype` (without the dot) is the legacy option that is
|
||||
superseded by `comment.type`. `commenttype` is still supported
|
||||
but deprecated.
|
||||
**Use `comment.type` instead.**
|
||||
|
||||
Reference in New Issue
Block a user