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 -- 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 -- Load global configs
require("globals") require("globals")
@ -7,4 +7,3 @@ require("globals")
require("plugins") require("plugins")
-- Load keymaps -- Load keymaps
require("keymaps") require("keymaps")

View file

@ -1,5 +1,5 @@
-- Load the different config files -- 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 -- Load global configs
require("globals") require("globals")

View file

@ -1,5 +1,5 @@
-- Load the different config files -- 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 -- Load global configs
require("globals") require("globals")