-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvim cannot change window to Tmux, output of :TmuxNavigatorProcessList is not as displayed #365
Comments
Just confirming, can you share the output of |
I am currently facing the same issue. Looks like an update broke it. |
n * j And bind-key -T copy-mode-vi C-j select-pane -D |
Seems related to this issue: LazyVim/LazyVim#1502 I've fixed it by setting up the following keymap in
|
You can also add return {
"christoomey/vim-tmux-navigator",
event = "BufReadPre",
} |
I recently migrated from Packer to Lazy and that trigger event fixed the problem for me. Thank you! |
return {
"christoomey/vim-tmux-navigator",
event = "BufReadPre",
} This solution only worked for me when opening up nvim first then selecting a file. Wouldn't work if opening a file with nvim directly. Adding the keymaps instead worked in both cases. |
Sorry I'm a little new to all of this, where would I be adding this? I currently have a
And in my |
@jaikb in And the keys should be written in another file like
|
Thank you for the response @PierrickGT. I went ahead and changed my line in my |
@jaikb Here's what worked for me: in return {
"christoomey/vim-tmux-navigator",
} Adding in -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
local map = vim.keymap.set
-- vim-tmux-navigator
if os.getenv("TMUX") then
map("n", "<C-h>", "<cmd>TmuxNavigateLeft<cr>")
map("n", "<C-j>", "<cmd>TmuxNavigateDown<cr>")
map("n", "<C-k>", "<cmd>TmuxNavigateUp<cr>")
map("n", "<C-l>", "<cmd>TmuxNavigateRight<cr>")
end
return {} If these lines aren't working for you then it's either because you have it in |
Here is the output of :TmuxNavigatorProcessList:
Ss -zsh
S+ nvim
I am running on MacOS 13.5.2, Nvim v0.9.2, Tmux 3.3a. I checked that there were no conflicting keymaps, but when I change to my neovim window I cannot navigate to back to my terminal window.
The text was updated successfully, but these errors were encountered: