Skip to content

Commit

Permalink
fix: add PWD to lua paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Sep 30, 2024
1 parent bdb92a5 commit 0f43a46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/shared/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ function M.test()
{ type = "file", path = vim.fn.getcwd() .. "/lua", limit = math.huge }
)

-- setup resolution path
package.path = package.path .. ";./lua/?.lua"

for _, file in ipairs(files) do
local relative_path = file:gsub(".*/ollero.nvim/lua/", "")
local require_path = relative_path:gsub(".lua", ""):gsub("/", ".")
Expand Down

0 comments on commit 0f43a46

Please sign in to comment.