Skip to content

Commit

Permalink
refactor(core): Moved highlights inside setup()
Browse files Browse the repository at this point in the history
This is to reduce load time when using Neovim like normal.
  • Loading branch information
OXY2DEV committed Jan 25, 2025
1 parent 3e0453c commit 14b261a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/markview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
--- And other minor things!
local markview = {};
local spec = require("markview.spec");
local highlights = require("markview.highlights");
local health = require("markview.health");

--- Plugin state variables.
Expand Down Expand Up @@ -1291,7 +1290,10 @@ markview.commands = {
---@param config table?
markview.setup = function (config)
spec.setup(config);

local highlights = require("markview.highlights");
highlights.setup(spec.get({ "highlight_groups" }, { fallback = {} }));

markview.commands.Render();
end

Expand Down

0 comments on commit 14b261a

Please sign in to comment.