Closed jeeeem closed 1 year ago
Just wanna ask have you tried this in Windows environment?
I haven't, I don't use Windows and don't have any Windows computers.
I assume this applies specifically to Wezterm, is that correct? Do other multiplexers work as intended on Windows?
Can you try, from a different terminal, run Wezterm via the CLI by running the command wezterm
, then open Neovim (in the new Wezterm window you just opened) and run require('smart-splits).setup({ multiplexer_integration = 'wezterm' })
to ensure it's using Wezterm, then try again, does anything interesting show up in Wezterm's log output in the other terminal?
Also, are you able to move across Wezterm splits by themselves, just not when you add Neovim splits to the mix?
I updated my plugins today, and ran into this issue. I'm running Arch Linux. When I create a wezterm split and run vim in it, I can move to the other window split for a second. After a second tho I can't move from vim to another wezterm window. I can however move from normal window to vim.
Can you try what I mentioned before:
Can you try, from a different terminal, run Wezterm via the CLI by running the command wezterm, then open Neovim (in the new Wezterm window you just opened) and run require('smart-splits).setup({ multiplexer_integration = 'wezterm' }) to ensure it's using Wezterm, then try again, does anything interesting show up in Wezterm's log output in the other terminal?
And add a print
statement in the Wezterm mappings in the is_vim
function, to check this comment from the wezterm issue? if wezterm is not reporting the foreground process name properly, then the keymaps won't work properly.
Ok, So I tried the first thing & that works. In my Config I had set multiplexer_integration
to Wezterm
(instead of wezterm
).
As for the is_vim
function. that was working fine. It returns nvim
.
So it’s working for you now?
Yes
@mrjones2014 Sorry for the late reply but I also print the is_vim
function and this is what I got
I also tried what other user say - https://github.com/wez/wezterm/issues/3597#issuecomment-1520220244, but it is still not working with this code
local function is_vim(pane)
function test()
return pane:get_title():find("~") ~= nil
end
print(pane:get_title())
print(test())
return pane:get_title():find("NVIM") ~= nil
end
I tried to navigate many times but its not letting me navigate to different wezterm panes as you can see in the image below. Although it is true, it doesn't navigate me
Getting the same issue on windows, pane:get_foreground_process_name() simply is not getting nvim.exe as the process name, but one of its child process, in this case lua-language-server.exe
as LSP was running, probably an upstream issue on Wezterm
Should be resolved on latest master with some small config changes. See README.md
Similar Issues
Neovim Version
NVIM v0.9.0-dev-1355+gb2d10aa01
Multiplexer Integration
Wezterm
Multiplexer Version
wezterm 20230421-075330-e0a92c73
Steps to Reproduce
Same as https://github.com/wez/wezterm/issues/3597
Just wanna ask have you tried this in Windows environment?, cos I wanna know if this is just really a windows-centric issue.
Expected Behavior
Should be able to navigate smoothly like tmux integration with vim using
ctrl+
keymapActual Behavior
It is working but have a weird behavior as it using different keymap rather the specified keymap option
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
No response