LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable

Home Page:https://www.chrisatmachine.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toggleterm toggling issue

techeddie opened this issue · comments

When I open a buffer -> toggle toggleterm -> minimize -> open again , it gives me an error message:

Error executing Lua callback: .../pack/packer/start/toggleterm.nvim/lua/toggleterm/ui.lua:202: Vim( lcd):E472: Command failed stack traceback: [C]: in function 'cmd' .../pack/packer/start/toggleterm.nvim/lua/toggleterm/ui.lua:202: in function 'switch_buf' ...packer/start/toggleterm.nvim/lua/toggleterm/terminal.lua:465: in function 'open' ...ite/pack/packer/start/toggleterm.nvim/lua/toggleterm.lua:56: in function 'smart_toggle' ...ite/pack/packer/start/toggleterm.nvim/lua/toggleterm.lua:261: in function 'toggle' ...ite/pack/packer/start/toggleterm.nvim/lua/toggleterm.lua:234: in function 'toggle_comman d' ...ite/pack/packer/start/toggleterm.nvim/lua/toggleterm.lua:371: in function <...ite/pack/p acker/start/toggleterm.nvim/lua/toggleterm.lua:371> Press ENTER or type command to continue
`
When I reopen toggleterm again, I get the same error...

2022-09-15_23-17 toggleterm issue

Neovim version:
$ nvim -v
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduse

My config: https://github.com/techeddie/dotfiles_linux/blob/playground/nvim/lua/plugconfig/toggleterm.lua

Any ideas? Thanks

Problem solved.
Causing code: cmd [[ autocmd BufEnter * lcd %:p:h ]]