Toggling/Spawning a custom terminal result in a crash.
E5113: Error while calling lua chunk: ...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:494: attempt to index local 'self' (a nil value)
Expected Behavior
Terminal is actually toggled/spawned
Steps To Reproduce
Using the provided snippet for installation with lazy :
local Terminal = require('toggleterm.terminal').Terminal
local function cmake_configure_prompt ()
local term = Terminal:new({
cmd = "cmake -S . -B .build -G Ninja"
})
term.toggle()
end
cmake_configure_prompt()
Running this (:luafile %) result in :
E5113: Error while calling lua chunk: ...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:494: attempt to index local 'self' (a nil value)
Is there an existing issue for this?
Current Behavior
Toggling/Spawning a custom terminal result in a crash.
Expected Behavior
Terminal is actually toggled/spawned
Steps To Reproduce
Using the provided snippet for installation with lazy :
Running this (:luafile %) result in :
Environment
Anything else?
No response