-
Notifications
You must be signed in to change notification settings - Fork 319
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 to tmux does not work #355
Comments
Just to confirm, do you have the vim plugin installed? (https://github.com/christoomey/vim-tmux-navigator#vim) Likewise, can you check the Vim key mappings per https://github.com/christoomey/vim-tmux-navigator#vim---tmux-doesnt-work? |
Yes I have the vim-tmux-navigator plugin installed and the mappings have been set too. Here are my plugins.lua and mappings.lua (I'm running nvchad): plugins.lua:
mappings.lua
|
Just to confirm as the mappings can be overriden by later config lines, can you check them as per https://github.com/christoomey/vim-tmux-navigator#vim---tmux-doesnt-work? |
Yes I checked and I don’t think that is the case. In fact the key mappings are working within neovim. For example when nvim-tree is open I am able to switch between the editor and the nvim-tree using C-h, C-L. It’s only switching out of nvim that isn’t working.On 11 Jun 2023, at 8:04 PM, Chris Toomey ***@***.***> wrote:
Just to confirm as the mappings can be overriden by later config lines, can you check them as per https://github.com/christoomey/vim-tmux-navigator#vim---tmux-doesnt-work?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This is almost the correct command. It should be |
Good spot thanks. Unfortunately it didn't fix the issue. |
I'm having the same issue. Also running nvchad and my plugin.lua and mappings.lua look the same as what aziz76 has. Also have the exact same behaviour as described by him above. I'm on Fedora 38. |
@aziz76 just to double check here, can you share the output of |
Hi Chris,
This is the output of : verbose nmap <C-h>:
n <C-H> * <C-W>h
Window left
Last set from Lua
… On 4 Jul 2023, at 7:16 PM, Chris Toomey ***@***.***> wrote:
Yes I checked and I don’t think that is the case. In fact the key mappings are working within neovim. For example when nvim-tree is open I am able to switch between the editor and the nvim-tree using C-h, C-L. It’s only switching out of nvim that isn’t working.
@aziz76 <https://github.com/aziz76> just to double check here, can you share the output of :verbose nmap <C-h>? It's possible you have a mapping like nmap <C-h> <C-w>h which would let navigation in Vim work, but would not allow for the vim<>tmux integration.
—
Reply to this email directly, view it on GitHub <#355 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADLVADUWJTNPWGXUWJ2OJ3XOQ6WBANCNFSM6AAAAAAZBRVY6E>.
You are receiving this because you were mentioned.
|
Yup, looks like you've got a conflicting mapping somewhere else in your config -- you'll need to find those conflicting config lines and remove them to get things working. Going to close this issue now as it looks like the issue is in your config rather than the plugin. |
@aziz76 Hey hello, just to know if you've fixed the issue in your config file. Because I was having the same issue from yesterday(I started setting up nvim with 'NV Chad' 1.5 days ago) , & I solved the problem in my config file few moments ago. Now I can seamlessly move from nvim to tmux and vice versa with shortcuts |
|
Not sure I understand, do I put these lines in custom/mappings.lua or custom/plugins.lua? I couldn't find any conflicting bindings as I have not assigned them anywhere else? |
@aziz76 I see you didn't return M at the last line in your mappings.lua file. and you can see the lines in my tmux.conf file below. If you find anything missing in your file you can add it there and see if starts to work. After adding those lines of
|
Also make sure you have the line
And keep your mappings.lua file same as above. After all of these configurations, your navigation from nvim to tmux and tmux to nvim should work. |
I fixed it defining the custom keymappings as you can see here. |
It seems TmuxNavigator can't find the tmux process because :TmuxNavigatorProcessList shows:
Switching works from tmux to nvim and within nvim but not nvim to tmux. Not sure if I am doing something wrong.
Would appreciate any help.
The text was updated successfully, but these errors were encountered: