Closed igorlfs closed 3 years ago
I'm having a very similar issue, but it's to do with windows instead of tabs.
I have a simple binding:
['n <leader>gs'] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
I have tried this with both buffer = true
and buffer = false
.
I use sessions (prosession) to keep my windows and buffers open on exit. So when I launch vim in my project, I have n buffers open, and two windows (a vsplit).
Let's call my two open buffers Buffer A and Buffer B
In the first window that the cursor is in (Buffer A), the binding works fine. If I change the buffer in that same window (Buffer B), the binding fails to work. If I change windows and try in either buffer, the binding fails to work.
So the binding only works in the first buffer in the first window.
To add to the strangeness, if I close my second window (so I only have a single window open when I start nvim), the binding works fine in both Buffer A and Buffer B.
Thanks guys for the info.
This was pretty easy to debug and fix. Basically, the mappings weren't being applied to buffers that were being opened in the background. Suprised no one has raised this issue earlier.
Should be fixed. Let me know if the issue persists.
Describe the bug Bindings only work in the first tab when using multiple tabs.
To Reproduce
init.vim:
Steps to reproduce the behavior:
file_a
andfile_b
$ vim -p file_a file_b
file_b
's tab and insert some text<leader>hs
. It won't work.Observed output I think there's no relevant log, as it's just a matter of mappings
Additional context System: Void Linux Neovim version: 0.5