willothy/wezterm.nvim

Split pane does not work

andreicorpo opened this issue · 4 comments

The following error occurs:

E5108: Error executing lua: ...korr/.local/share/nvim/lazy/wezterm.nvim/lua/wezterm.lua:86: attempt to call field 'system' (a nil value)
stack traceback:
	...korr/.local/share/nvim/lazy/wezterm.nvim/lua/wezterm.lua:86: in function 'exec'
	...korr/.local/share/nvim/lazy/wezterm.nvim/lua/wezterm.lua:249: in function 'horizontal'
	/Users/andokorr/.config/nvim/lua/plugins/misc.lua:260: in function </Users/andokorr/.config/nvim/lua/plugins/misc.lua:259>

Seems like you're on a version of neovim before 'vim.system' was added. What version are you using?

$ nvim --version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1700008891

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.4/share/nvim"

Run :checkhealth for more info

ah yes, vim.system was added in 0.10, so you'll need to use nightly. I should note that in the readme or maybe use uv.spawn for backwards compatability.

I have vendored vim.system for now, so this should work on 0.9 :)