Skip to content

Commit

Permalink
oth: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Sep 30, 2024
1 parent 80a24c8 commit bf75478
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/shared/tests.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
local M = {}

-- setup resolution path
package.path = package.path .. ";./lua/?.lua"
vim.print(package)

local log = require("shared.logger").create_logger({ log_level = "debug" })

--- Run a test
Expand All @@ -25,10 +29,6 @@ function M.test()
{ type = "file", path = vim.fn.getcwd() .. "/lua", limit = math.huge }
)

-- setup resolution path
vim.print(package)
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 bf75478

Please sign in to comment.