Plugin specification file(s)
Post or link your plugin specification files here, if you aren't able to provide a minimal
reproducer
test.lua:
```lua
-- this template is borrowed from nvim-lspconfig
local on_windows = vim.loop.os_uname().version:match("Windows")
vim.env['GITHUB'] = vim.env['GITHUB'] or 'www.github.com'
local function join_paths(...)
local path_sep = on_windows and "\\" or "/"
local result = table.concat({ ... }, path_sep)
return result
end
vim.cmd([[set runtimepath=$VIMRUNTIME]])
local temp_dir
if on_windows then
temp_dir = vim.loop.os_getenv("TEMP")
else
temp_dir = "/tmp"
end
vim.cmd("set packpath=" .. join_paths(temp_dir, "nvim", "site"))
local package_root = join_paths(temp_dir, "nvim", "site", "pack")
local install_path = join_paths(package_root, "packer", "start", "packer.nvim")
local compile_path = join_paths(install_path, "plugin", "packer_compiled.lua")
local function load_plugins()
-- only add other plugins if they are necessary to reproduce the issue
require("packer").startup({
{
"wbthomason/packer.nvim",
{
'tonyfettes/fcitx5.nvim',
tag = 'v0.0.1-alpha',
rocks = {'dbus_proxy', 'lgi'}
}
},
config = {
package_root = package_root,
compile_path = compile_path,
git = { default_url_format = 'https://' .. vim.env['GITHUB'] .. '/%s' }
},
})
end
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system({ "git", "clone", 'https://' .. vim.env['GITHUB'] .. '/wbthomason/packer.nvim', install_path })
end
load_plugins()
-- require("packer").sync()
vim.cmd([[ set completeopt=menu,menuone,noselect]])
```
packer log file
Post the contents of ~/.cache/nvim/packer.nvim.log here
No such file.
packer compiled file
I don't find it... Seems like setting packpath is not affecting the config path. `require('packer').config.compile_path` is the location of my daily driver config's compiled path, so this might be another bug.
nvim --version
:Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/share/nvim"
Run :checkhealth for more info
git version 2.37.1
Linux archlinux 5.18.15-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 29 Jul 2022 22:52:41 +0000 x86_64 GNU/Linux
alacritty 0.10.1 ()
(test.lua is in the below section)
PackerSync
Actual behaviour
Expected behaviour
No error.
packer files
Plugin specification file(s)
Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer test.lua: ```lua -- this template is borrowed from nvim-lspconfig local on_windows = vim.loop.os_uname().version:match("Windows") vim.env['GITHUB'] = vim.env['GITHUB'] or 'www.github.com' local function join_paths(...) local path_sep = on_windows and "\\" or "/" local result = table.concat({ ... }, path_sep) return result end vim.cmd([[set runtimepath=$VIMRUNTIME]]) local temp_dir if on_windows then temp_dir = vim.loop.os_getenv("TEMP") else temp_dir = "/tmp" end vim.cmd("set packpath=" .. join_paths(temp_dir, "nvim", "site")) local package_root = join_paths(temp_dir, "nvim", "site", "pack") local install_path = join_paths(package_root, "packer", "start", "packer.nvim") local compile_path = join_paths(install_path, "plugin", "packer_compiled.lua") local function load_plugins() -- only add other plugins if they are necessary to reproduce the issue require("packer").startup({ { "wbthomason/packer.nvim", { 'tonyfettes/fcitx5.nvim', tag = 'v0.0.1-alpha', rocks = {'dbus_proxy', 'lgi'} } }, config = { package_root = package_root, compile_path = compile_path, git = { default_url_format = 'https://' .. vim.env['GITHUB'] .. '/%s' } }, }) end if vim.fn.isdirectory(install_path) == 0 then vim.fn.system({ "git", "clone", 'https://' .. vim.env['GITHUB'] .. '/wbthomason/packer.nvim', install_path }) end load_plugins() -- require("packer").sync() vim.cmd([[ set completeopt=menu,menuone,noselect]]) ```packer log file
Post the contents of ~/.cache/nvim/packer.nvim.log here No such file.packer compiled file
I don't find it... Seems like setting packpath is not affecting the config path. `require('packer').config.compile_path` is the location of my daily driver config's compiled path, so this might be another bug.