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 21bb61c commit 589452dCopy full SHA for 589452d
runtime/plugins/comment/comment.lua
@@ -61,17 +61,13 @@ ft["zig"] = "// %s"
61
ft["zscript"] = "// %s"
62
ft["zsh"] = "# %s"
63
64
-local last_ft
65
-
66
function updateCommentType(buf)
67
- if buf.Settings["commenttype"] == nil or (last_ft ~= buf.Settings["filetype"] and last_ft ~= nil) then
+ if buf.Settings["commenttype"] == nil then
68
if ft[buf.Settings["filetype"]] ~= nil then
69
buf.Settings["commenttype"] = ft[buf.Settings["filetype"]]
70
else
71
buf.Settings["commenttype"] = "# %s"
72
end
73
74
- last_ft = buf.Settings["filetype"]
75
76
77
0 commit comments