fix: Order of loading configs

This fixes the issue where lazy.nvim will load plugins from the current
directory instead of the proper folder
This commit is contained in:
Sayantan Santra 2024-10-02 01:27:08 -05:00
parent 2ce8782d14
commit f8cbef6912
Signed by: SinTan1729
GPG Key ID: 0538DD402EA50898
3 changed files with 3 additions and 4 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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")