mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
906 stars 38 forks source link

E5113: Error while calling lua chunk...attempt to call field 'nvim_add_user_command' (a nil value) #7

Closed AGou-ops closed 2 years ago

AGou-ops commented 2 years ago

I get this error when I open a file:

处理 /Users/agou-ops/.vim/plugged/smart-splits.nvim/plugin/smart-splits.lua 时发生错误:
E5113: Error while calling lua chunk: ...s/.vim/plugged/smart-splits.nvim/plugin/smart-splits.lua:13: attempt to call field 'nvim_add_user_command' (a nil value)
stack traceback:
        ...s/.vim/plugged/smart-splits.nvim/plugin/smart-splits.lua:13: in main chunk

And my config is default: image

mrjones2014 commented 2 years ago

Ah, that function might only be available in nightly releases for now. I can make an update to define commands the old way.

AGou-ops commented 2 years ago

Thanks. I'm waiting for you.

mrjones2014 commented 2 years ago

@AGou-ops should be fixed now.

AGou-ops commented 2 years ago

Yes, it works. Thank you very much!