Hi!
Since a week or so, running /usr/share/lunarvim/init-lvim.sh
fails at this step:
==> Generate the new ftplugin template files..
lvim --headless +LvimUpdate +q
07:10:04 [ERROR] lvim: "Update failed! Check the log for further information" file="bootstrap.lua", line=150
The relevant log lines are:
07:10:04 [DEBUG] lvim: { "fatal: not a git repository (or any of the parent directories): .git" } file="lvim/lua/lvim/bootstrap.lua", line=125
07:10:04 [ERROR] lvim: "Update failed! Check the log for further information" file="lvim/lua/lvim/bootstrap.lua", line=150
Which are produced when calling the function M:update_repo()
@ /usr/share/lunarvim/lua/lvim/boostrap.lua
I think the issue is that the get_lvim_base_dir()
returns an incorrect directory, which is simply base_dir
, which is defined on init.lua
like this:
local init_path = debug.getinfo(1, "S").source:sub(2)
local base_dir = init_path:match("(.*[/\\])"):sub(1, -2)
My knowledge of lua is pretty much non-existent, so here is where I get lost.
Can you help me? Thanks a bunch!
Pinned Comments
Hanatomizu commented on 2025-01-31 13:37 (UTC)
Well, I must acknowledge that the process of rebuilding all nvim-treesitter plugins is indeed quite frustrating.
If you wish to avoid frequent rebuilds of this package, it is recommended to add it to the
IgnorePkg
list in/etc/pacman.conf
.