E5108: Error executing lua: ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...e/nvim/lazy/compile-mode.nvim/lua/compile-mode/utils.lua:87: attempt to concatenate local 'count' (a nil value)
stack traceback:
[C]: in function 'error'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'step'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:48: in function 'execute'
...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:118: in function 'compile'
/Users/ha/.config/nvim/lua/plugins/init.lua:160: in function </Users/ha/.config/nvim/lua/plugins/init.lua:155>
Describe the bug
I must invoke those functions like this:
Otherwise I get this error:
The error comes from these lines in split_unless_open.
To Reproduce Steps to reproduce the behavior:
:lua require("compile-mode").compile({ args = "an executable" })
Expected behavior One of these two things:
count
is mandatory, in this section (for bothcompile
andrecompile
).compile
andrecompile
to add a default value of 0 tocount
.Screenshots nope
Neovim Version
compile-mode.nvim Version I'm running the latest branch.
Additional context nope