Closed mdietrich16 closed 10 months ago
This could be mitigated by checking for vim.g.neovide which is nil when not in Neovide and true when in Neovide, which I tried. However, this is a fairly specific addition, since other UI's exist with probably the same problem.
Yeah, a more appropriate solution would probably be to just disable terminal mux integrations entirely if it's detected that you're using a GUI instead of nvim's TUI. We may be able to check that via vim.api.nvim_list_uis()
. If term_name
doesn't match one of ours, or if stdin_tty
or stdout_tty
are false
, then it's probably a GUI.
Please verify that #132 resolves your issue @mdietrich16 🙏
Did a review, small changes required. If those are fixed, it seems to work with Neovide at least. Nice work!
I'll close when the PR is merged.
Thanks for the review + testing! It will auto-close the issue when I merge the PR. I'll tag a patch release after merging.
Alright, thanks for the quick and elegant fix!
The latest commit https://github.com/mrjones2014/smart-splits.nvim/commit/26085a67fe4eab87d0df72402754028f54b53a3c causes the error to appear on start up again. It's not a big problem as everything still works fine. The error message only shows on startup from launching inside wezterm, not from launching Neovide from GUI.
@lkhphuc does #142 fix it for you?
Similar Issues
Neovim Version
NVIM v0.9.4 Build type: Release LuaJIT 2.1.1696795921
Multiplexer Integration
Wezterm
Multiplexer Version
wezterm 20230712-072601-f4abf8fd
Steps to Reproduce
neovide<CR>
Expected Behavior
Neovide opens and smart-splits works without WezTerm integration
Actual Behavior
Neovide opens and smart-splits works without WezTerm integration but echoes error message:
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
This could be mitigated by checking for
vim.g.neovide
which isnil
when not in Neovide andtrue
when in Neovide, which I tried. However, this is a fairly specific addition, since other UI's exist with probably the same problem.I would just be glad to get a pointer to where I can manually do this. I tried through the
lazy.nvim
opts and init function like:But the error then just originates from that init function, which seems to mean that
plugin/smart-splits.vim
gets loaded when doing anyrequire("smart-splits")
. This of course makes it impossible for me to override this behaviour.