Closed towry closed 3 months ago
:lua=require('smart-splits.config').multiplexer_integration
output correctly: "wezterm"
Just noticed the alert on your plugin's readme. The reason this happens is because the is_vim
logic can not determine the current process name in git merge mode (it returns git
).
Resolved by not lazy loading this plugin in vim git mode.
It should also work if you use the newest version of the Wezterm config snippet; it uses Wezterm user vars instead of inspecting the process name.
Similar Issues
Neovim Version
NVIM v0.10.0-dev-build-20231109-1408-gf6dcc464f Build type: Release LuaJIT 2.1.1710088188 Run "nvim -V1 -v" for more info
Multiplexer Integration
Wezterm
Multiplexer Version
wezterm 20240203-110809-5046fc22
Steps to Reproduce
Create a git conflict repo
cd /tmp && mkdir testdir && cd testdir && git init
nvim a.txt
nvim a.txt
git checkout main
orgit checkout master
nvim a.txt
git merge conflict-branch
Steps to start git mergetool
cd /tmp && nvim init.lua
.init.lua
, the contents is provided later.cd testdir && nvim .git/config
testdir
rungit mergetool --tool nvim
.<C-l>, <C-h>
etc.NOTE:
:cq 1
in vim to abort the merge, so you can try merge again.Expected Behavior
Navigate windows should work in wezterm and in git diff mode.
Actual Behavior
Doesn't work if:
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
It works in kitty & tmux.