We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d40a952 commit b4920fbCopy full SHA for b4920fb
runtime/plugins/comment/comment.lua
@@ -3,6 +3,7 @@ VERSION = "1.0.0"
3
local util = import("micro/util")
4
local config = import("micro/config")
5
local buffer = import("micro/buffer")
6
+local micro = import("micro")
7
8
local ft = {}
9
@@ -62,6 +63,11 @@ ft["zscript"] = "// %s"
62
63
ft["zsh"] = "# %s"
64
65
function updateCommentType(buf)
66
+ if buf.Settings["commenttype"] ~= nil then
67
+ micro.InfoBar():Error("\"commenttype\" option has been updated to \"comment.type\"",
68
+ "instead, please update accordingly")
69
+ end
70
+
71
-- NOTE: Don't use SetOptionNative() to set "comment.type",
72
-- otherwise "comment.type" can't be reset by a "filetype" change.
73
if buf.Settings["comment.type"] == "" then
0 commit comments