Linux lmbook 5.15.130-1-MANJARO #1 SMP PREEMPT Sat Sep 2 20:56:09 UTC 2023 x86_64 GNU/Linux
Terminal name/version:
kitty 0.29.2 created by Kovid Goyal
Steps to reproduce
Create simpliest init.lua file (see bellow) to give pckr a test but get an error at nvim launch
Actual behaviour
When nvim is launch, got following error:
Error executing vim.schedule lua callback: /home/<user>/.local/share/nvim/pckr/pckr.nvim/lua/pckr.lua:57: Error executing lua: ...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua
:58: attempt to call field 'joinpath' (a nil value)
stack traceback:
...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:58: in function 'source_runtime'
...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:199: in function 'do_loadplugins'
...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:233: in function <...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/loader.lua:227>
[C]: in function 'nvim_win_call'
/home/<user>/.local/share/nvim/pckr/pckr.nvim/lua/pckr.lua:57: in function 'callback'
...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/async.lua:23: in function <...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/async.lua:7>
stack traceback:
[C]: in function 'nvim_win_call'
/home/<user>/.local/share/nvim/pckr/pckr.nvim/lua/pckr.lua:57: in function 'callback'
...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/async.lua:23: in function <...ser>/.local/share/nvim/pckr/pckr.nvim/lua/pckr/async.lua:7>
Press ENTER or type command to continue
Expected behaviour
Expect the declared plugin to be cloned from git and loaded in nvim.
pckr files
/home/username/.config/nvim/init.lua:
local function bootstrap_pckr()
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
if not vim.loop.fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
"--filter=blob:none",
'https://github.com/lewis6991/pckr.nvim',
pckr_path
})
end
vim.opt.rtp:prepend(pckr_path)
end
bootstrap_pckr()
require('pckr').add{
-- Simple plugins can be specified as strings
'9mm/vim-closer';
}
nvim --version
:git --version
:git version 2.42.0
Linux lmbook 5.15.130-1-MANJARO #1 SMP PREEMPT Sat Sep 2 20:56:09 UTC 2023 x86_64 GNU/Linux
kitty 0.29.2 created by Kovid Goyal
Steps to reproduce
Create simpliest init.lua file (see bellow) to give pckr a test but get an error at nvim launch
Actual behaviour
When nvim is launch, got following error:
Expected behaviour
Expect the declared plugin to be cloned from git and loaded in nvim.
pckr files
/home/username/.config/nvim/init.lua: