Open andrewcrook opened 6 months ago
Seems that the issue is caused by case mismatch. I am not sure about the lua/luarocks specifications regarding package naming. Maybe ensure and convert the value given to has_value is the same case that the string is being compared against ? For example ...
local function has_value(tab, val)
valLower = string.lower(val)
for _, value in ipairs(tab) do
valueLower = string.lower(value) -- needed? is it alway lower case?
if valueLower == valLower then
return true
end
end
return false
end
I think nvim_rocks.ensure_installed
should probably turn all strings lower case.
This gets rid of the issue.
ensure_installed reinstalls packages upon every nvim load
Example every nvim reload it says its trying to install luafilesystem
I can tell its doing this because the date changes on the directory after every reload
here is the current config