christoomey / vim-tmux-navigator

Seamless navigation between tmux panes and vim splits
MIT License
5.07k stars 319 forks source link

Default keybindings config from README did not work #375

Closed DefinitelyNotSimon13 closed 5 months ago

DefinitelyNotSimon13 commented 5 months ago

Hey there,

so I just installed the plugin and with the default config from the README the plugin did not work.

My setup:

I fixed it by simply adding the keybings myself

M.vimTmuxNavigator = { plugin = true, n = { ["<C-h>"] = { "<cmd>TmuxNavigateLeft<CR>", "Navigate Tmux" }, ["<C-j>"] = { "<cmd>TmuxNavigateDown<CR>", "Navigate Tmux" }, ["<C-k>"] = { "<cmd>TmuxNavigateUp<CR>", "Navigate Tmux" }, ["<C-l>"] = { "<cmd>TmuxNavigateRight<CR>", "Navigate Tmux" }, } }

It is very possible, that there simply was a clash in my config, just thought I'd add it as an issue, if anyone else encounters it!

christoomey commented 5 months ago

Hey @DefinitelyNotSimon13 - did you see the lazy.nvim install instructions, and does it look like those would have worked for you here?

I've yet to make the full jump to nvim so not 100% sure the details, but it looks like that should have covered things. I'm going to close this now as I believe we're set on this front, but wanted to highlight / confirm.

DefinitelyNotSimon13 commented 4 months ago

@christoomey Yes, I was unable to get those to work! I am also quite new to nvim, as such the error could very well be on my, however since the setup was working without any problems, when I just added the commands with "normal" keybinds, I just thought I'd mention it ^^