mirror of https://github.com/folke/lazy.nvim.git
fix(config): check for lib64. Fixes #1343
This commit is contained in:
parent
788feaf10e
commit
93499c5deb
|
@ -0,0 +1,12 @@
|
|||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
|
@ -284,6 +284,9 @@ 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"
|
||||
if M.options.performance.rtp.reset then
|
||||
---@type vim.Option
|
||||
vim.opt.rtp = {
|
||||
|
@ -291,7 +294,7 @@ function M.setup(opts)
|
|||
vim.fn.stdpath("data") .. "/site",
|
||||
M.me,
|
||||
vim.env.VIMRUNTIME,
|
||||
vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib/nvim",
|
||||
lib,
|
||||
vim.fn.stdpath("config") .. "/after",
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue