From 6a9fcdc0766c63b1c2695edc82f53229b47de14e Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 12 Oct 2024 05:52:54 -0400 Subject: [PATCH] refactor: restructure plugin initialization for clarity --- lua/plugins/dashboard/alpha.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lua/plugins/dashboard/alpha.lua b/lua/plugins/dashboard/alpha.lua index bafc5b9..0c49157 100644 --- a/lua/plugins/dashboard/alpha.lua +++ b/lua/plugins/dashboard/alpha.lua @@ -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,