fix(config): runtimepath reset was sometimes picking wrong lib: path

This commit is contained in:
bossach 2025-08-25 02:37:27 +03:00
commit 900eeef951

View file

@ -299,8 +299,7 @@ function M.setup(opts)
M.me = debug.getinfo(1, "S").source:sub(2)
M.me = Util.norm(vim.fn.fnamemodify(M.me, ":p:h:h:h:h"))
local lib = vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib"
lib = vim.uv.fs_stat(lib .. "64") and (lib .. "64") or lib
lib = lib .. "/nvim"
lib = vim.uv.fs_stat(lib .. "64/nvim") and (lib .. "64/nvim") or lib .. "/nvim"
if M.options.performance.rtp.reset then
---@type vim.Option
vim.opt.rtp = {