mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-09-20 12:55:49 +00:00
fix(config): runtimepath reset was sometimes picking wrong lib: path
This commit is contained in:
parent
6c3bda4aca
commit
900eeef951
1 changed files with 1 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue