Skip to content

Commit

Permalink
feat(log): trace luarocks_config path
Browse files Browse the repository at this point in the history
To help debug/diagnose if config is correctly set.
It can be deceiving in case vim.g.rocks_nvim gets changed later.

Which is why at first I thought of passing the luarocks config via the
command line instead of the environment but luarocks still doesn't
support it: luarocks/luarocks#1086

This looks like a good compromise.
  • Loading branch information
teto committed Jul 3, 2024
1 parent 170a1b0 commit 86c94b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/rocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ log.trace("loading rocks.adapter")
local adapter = require("rocks.adapter")
log.trace("loading rocks config")
local config = require("rocks.config.internal")
log.debug("Using luarocks config " .. config.luarocks_config)

-- Initialize the luarocks loader
if config.enable_luarocks_loader then
Expand Down

0 comments on commit 86c94b8

Please sign in to comment.