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 c68923a commit 8523596Copy full SHA for 8523596
lua/hlchunk/mods/base_mod/init.lua
@@ -43,7 +43,9 @@ function BaseMod:enable()
43
local ok, info = pcall(function()
44
self.conf.enable = true
45
self:setHl()
46
- self:render(Scope(0, fn.line("w0") - 1, fn.line("w$") - 1))
+ if self:shouldRender(0) then
47
+ self:render(Scope(0, fn.line("w0") - 1, fn.line("w$") - 1))
48
+ end
49
self:createAutocmd()
50
self:createUsercmd()
51
end)
0 commit comments