fix(config): check for lib64. Fixes #1343

This commit is contained in:
Folke Lemaitre 2024-07-13 18:07:56 +02:00
parent 788feaf10e
commit 93499c5deb
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 16 additions and 1 deletions

12
.editorconfig Normal file
View File

@ -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

View File

@ -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