`compute_foldcolumn` symbol not found
cppcoffee opened this issue · comments
Xiaobo Liu commented
Use the Lazy plugin to load statuscol with the following configuration:
return {
'luukvbaal/statuscol.nvim',
-- enabled = false,
event = 'VeryLazy',
opts = function()
local builtin = require('statuscol.builtin')
return {
relculright = true,
segments = {
{
sign = { name = { '.*' }, maxwidth = 1, auto = true },
click = 'v:lua#.ScSa'
},
{ text = { builtin.lnumfunc }, click = 'v:lua.ScLa', },
{ text = { builtin.foldfunc }, click = 'v:lua.ScFa' },
{
text = { ' ' },
condition = { builtin.not_empty, true, builtin.not_empty },
click = 'v:lua.ScFa'
},
}
}
end
}
When launching nvim, an error was prompted:
E5108: Error executing lua ...share/nvim/lazy/statuscol.nvim/lua/statuscol/builtin.lua:33: dlsym(RTLD_DEFAULT, compute_foldcolumn): symbol not found
stack traceback:
[C]: in function '__index'
...share/nvim/lazy/statuscol.nvim/lua/statuscol/builtin.lua:33: in function 'text'
.../.local/share/nvim/lazy/statuscol.nvim/lua/statuscol.lua:275: in function <.../.local/share/nvim/lazy/statuscol.nvim/lua/statuscol.lua:247>
I found ~/.local/share/nvim/lazy/statuscol.nvim/lua/statuscol/builtin.lua:33
:
31 --- Return fold column in configured format.
32 function M.foldfunc(args)
33 local width = C.compute_foldcolumn(args.wp, 0)
34 if width == 0 then return "" end
The 33 line is C.compute_foldcolumn
.
nvim version:
NVIM v0.9.2
Build type: Release
LuaJIT 2.1.0-beta3
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.2/share/nvim"
Run :checkhealth for more info
osx version: 14.0 (23A344)
How do I fix this problem?
luukvbaal commented
I think your only option is to update to a nightly build or build from source: neovim/neovim#25487.
Xiaobo Liu commented
Thank you.