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 b9ee647 commit 11697efCopy full SHA for 11697ef
lua/commonmarker/init.lua
@@ -56,13 +56,13 @@ local function highlight (buffer, namespace)
56
end
57
58
59
-commonmarker.detach = function (self, buffer)
+function commonmarker:detach (buffer)
60
dump(self._attachments)
61
self._attachments[buffer] = nil
62
buf_clear_namespace(buffer, self._namespace, 0, -1)
63
64
65
-commonmarker.attach = function (self, buffer)
+function commonmarker:attach (buffer)
66
if self._attachments[buffer] then return end
67
self._attachments[buffer] = true
68
highlight(buffer, self._namespace)
0 commit comments