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.
b.Settings
1 parent 0542765 commit a678d42Copy full SHA for a678d42
runtime/plugins/comment/comment.lua
@@ -66,9 +66,9 @@ local last_ft
66
function updateCommentType(buf)
67
if buf.Settings["commenttype"] == nil or (last_ft ~= buf.Settings["filetype"] and last_ft ~= nil) then
68
if ft[buf.Settings["filetype"]] ~= nil then
69
- buf.Settings["commenttype"] = ft[buf.Settings["filetype"]]
+ buf:SetOptionNative("commenttype", ft[buf.Settings["filetype"]])
70
else
71
- buf.Settings["commenttype"] = "# %s"
+ buf:SetOptionNative("commenttype", "# %s")
72
end
73
74
last_ft = buf.Settings["filetype"]
0 commit comments