From 57e5def998f2c8ae184a53359e1598869fa74656 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 4 Mar 2022 16:25:11 +0100 Subject: [PATCH] home: vim: git: 'gitsigns' mappings are per buffer --- home/vim/plugin/settings/git.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/vim/plugin/settings/git.vim b/home/vim/plugin/settings/git.vim index f376569..7059f01 100644 --- a/home/vim/plugin/settings/git.vim +++ b/home/vim/plugin/settings/git.vim @@ -50,8 +50,8 @@ gitsigns.setup({ } wk.register(keys, { buffer = bufnr }) - wk.register(objects, { mode = "o" }) - wk.register(visual, { mode = "x" }) + wk.register(objects, { buffer = bufnr, mode = "o" }) + wk.register(visual, { buffer = bufnr, mode = "x" }) end, }) EOF