Closed gyang274 closed 6 months ago
Same for me, from Tmux side is working but not from neovim side. I'm using the lazy.kickstarter file for my setup.
this is my config.
return {
'christoomey/vim-tmux-navigator',
lazy = false,
event = "BufReadPre",
}
I have noticed the plugin is at Start state. not sure what it means. waiting to be started?
I added the following keymaps that solved the issue:
vim.api.nvim_set_keymap('n', '<C-l>', ':TmuxNavigateRight<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-j>', ':TmuxNavigateDown<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-h>', ':TmuxNavigateLeft<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<C-k>', ':TmuxNavigateUp<CR>', { noremap = true, silent = true })
worked for me! just had to run :luafile %
for the keymaps to reload
My sense is that kickstart or something else in your Vim config is overriding the keybindings, thus it doesn't work when you open nvim fresh, but does after resourcing the relavent config file. This also matches the output in the screenshot you shared for the <C-h>
etc keybindings.
You might be able to chase down the conflicting key bindings w/ :verbose nmap <C-j>
or similar (this should list where they were set).
Ultimately I think this is a case of conflicting configuration rather than an issue with the plugin, so I'm going to close this issue, but please feel free to comment if you think I've missed something.
Hi Christoomey and team,
Thank you for this great tool.
After install following the guide, moving from nvim to tmux pane not working. Attached a screenshot of the output of :TmuxNavigatorProcessList in nvim.
My system: ubuntu 22.04 tmux 3.2a nvim v0.9.4
My ~/.config/tmux/tmux.conf
My ~/.config/nvim/lua/custom/init.lua
My ~/.config/nvim/lua/custom/plugins.lua