Closed kola-web closed 8 months ago
Sorry, I'm not clear on what the actual issue is. Can you elaborate?
@mrjones2014 When in the layout as shown in the figure, calling the require('smart-splits').move_cursor_right method on the left cannot jump to the right.
Is there anything relevant in :SmartSplitsLog
?
[五 12/15 18:01:10 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:01:45 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:03:32 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:09:08 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:13:25 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:16:57 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 18:19:37 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [Fri Dec 15 18:57:36 2023][smart-splits.nvim] Auto-detected multiplexer back-end: none [五 12/15 19:22:21 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 19:22:21 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 19:24:09 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 19:26:24 2023][smart-splits.nvim] Auto-detected multiplexer back-end: tmux [五 12/15 20:13:17 2023][smart-splits.nvim] Auto-detected multiplexer back-end: none
Wait, are you using tmux or kitty's multiplexer? It looks like auto-detection is detecting tmux instead of kitty.
You can try explicitly setting kitty as your mux in config:
require('smart-splits').setup({
multiplexer_integration = 'kitty',
})
[五 12/15 20:18:38 2023][smart-splits.nvim] Auto-detected multiplexer back-end: none [五 12/15 20:19:05 2023][smart-splits.nvim] Auto-detected multiplexer back-end: none No way Having tmux should be used for me in other terminals
this is solvable in user config:
require('smart-splits').setup({
multiplexer_integration = vim.env.KITTY_LISTEN_ON ~= nil and 'kitty' or nil,
})
This will make it force kitty
in Kitty terminal, or fall back to auto-detection in other terminals.
I modified the configuration like this, but it doesn't take effect
@mrjones2014 Thank you for your help, thank you
Ah so its working now?
no
What's the output from :lua=require('smart-splits.mux.kitty').is_in_session()
?
Are you sure you followed all the setup instructions for kitty? It requires that you run with
# For linux only:
kitty -o allow_remote_control=yes --single-instance --listen-on unix:@mykitty
# Other unix systems:
kitty -o allow_remote_control=yes --single-instance --listen-on unix:/tmp/mykitty
Or have this in ~/.config/kitty/kitty.conf
# For linux only:
allow_remote_control yes
listen_on unix:@mykitty
# Other unix systems:
allow_remote_control yes
listen_on unix:/tmp/mykitty
kitty -o allow_remote_control=yes --single-instance --listen-on unix:/tmp/mykitty
After executing this command, it is feasible in a newly opened window.
allow_remote_control yes listen_on unix:/tmp/mykitty
This command is not allowed
Similar Issues
Neovim Version
NVIM v0.9.4 Build type: Release LuaJIT 2.1.1700008891
Run :checkhealth for more info
Multiplexer Integration
Kitty
Multiplexer Version
kitty 0.31.0 created by Kovid Goyal
Steps to Reproduce
Expected Behavior
Able to jump normally
Actual Behavior
No response
Minimal Configuration to Reproduce
Additional Details and/or Screenshots