Skip to content

Commit 40beb3d

Browse files
Merge branch 'CommentPluginFix' into dev
2 parents 7ec2d96 + ef5c482 commit 40beb3d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

runtime/plugins/comment/comment.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ function updateCommentType(buf)
6969
-- NOTE: This won't get triggered if a filetype is change via `setlocal filetype`
7070
-- since it is not registered with `RegisterGlobalOption()``
7171
if buf.Settings["commenttype"] ~= nil then
72-
micro.InfoBar():Error("\"commenttype\" option has been renamed to \"comment.type\"",
73-
", please update your configuration")
7472
buf:DoSetOptionNative("comment.type", buf.Settings["commenttype"])
7573
else
7674
if (ft[buf.Settings["filetype"]] ~= nil) then

runtime/plugins/comment/help/comment.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,8 @@ Or in your `settings.json`:
9595
}
9696
}
9797
```
98+
99+
`commenttype` was the previous option name that was replaced by `comment.type`.
100+
101+
While `commenttype` is still supported, we recommend switching to `comment.type` instead as
102+
`commenttype` can get deprecated in the future.

0 commit comments

Comments
 (0)