refactor: restructure plugin initialization for clarity

This commit is contained in:
2024-10-12 05:52:54 -04:00
parent ba1d423d58
commit 6a9fcdc076
+6 -4
View File
@@ -35,10 +35,6 @@ return { -- Alpha
callback = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
-- If auto-cursorline is installed, disable it
if pcall(require, "auto-cursorline") then
require("auto-cursorline").disable({ buffer = true })
end
dashboard.section.footer.val = "󰇥 Neovim loaded "
.. stats.loaded
.. "/"
@@ -47,6 +43,12 @@ return { -- Alpha
.. ms
.. "ms 󱐌"
pcall(vim.cmd.AlphaRedraw)
-- Handle other plugins that may conflict
-- If auto-cursorline is installed, disable it
if pcall(require, "auto-cursorline") then
require("auto-cursorline").disable({ buffer = true })
end
end,
})
end,