From f8cbef6912e37c5e3c23eb6048e2641151e27352 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 2 Oct 2024 01:27:08 -0500 Subject: [PATCH] fix: Order of loading configs This fixes the issue where lazy.nvim will load plugins from the current directory instead of the proper folder --- laptop/init.lua | 3 +-- server/init.lua | 2 +- vps/init.lua | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/laptop/init.lua b/laptop/init.lua index 75135ae..17e49af 100644 --- a/laptop/init.lua +++ b/laptop/init.lua @@ -1,5 +1,5 @@ -- Load the different config files -package.path = package.path .. ';' .. vim.fn.stdpath("config") .. "/config/?.lua" +package.path = vim.fn.stdpath("config") .. "/config/?.lua" .. ';' .. package.path -- Load global configs require("globals") @@ -7,4 +7,3 @@ require("globals") require("plugins") -- Load keymaps require("keymaps") - diff --git a/server/init.lua b/server/init.lua index 75135ae..026f231 100644 --- a/server/init.lua +++ b/server/init.lua @@ -1,5 +1,5 @@ -- Load the different config files -package.path = package.path .. ';' .. vim.fn.stdpath("config") .. "/config/?.lua" +package.path = vim.fn.stdpath("config") .. "/config/?.lua" .. ';' .. package.path -- Load global configs require("globals") diff --git a/vps/init.lua b/vps/init.lua index 75135ae..026f231 100644 --- a/vps/init.lua +++ b/vps/init.lua @@ -1,5 +1,5 @@ -- Load the different config files -package.path = package.path .. ';' .. vim.fn.stdpath("config") .. "/config/?.lua" +package.path = vim.fn.stdpath("config") .. "/config/?.lua" .. ';' .. package.path -- Load global configs require("globals")