1
0
forked from extern/nix-config

fix(neovim): Manually toggle git blame

This fixes an issue where git blame would still show a single fixed line
in zen mode previously.
This commit is contained in:
Donovan Glover 2023-08-01 12:14:22 -04:00
parent 6991587294
commit 5f629bf0d6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -138,6 +138,7 @@ in
let mapleader = ' '
nnoremap <silent> <leader>e :set nu!<CR>
nnoremap <silent> <leader>t :OverCommandLine<CR>%s/
nnoremap <silent> <leader>o :GitBlameToggle<CR>
nnoremap <silent> <leader>a <C-w>w
nnoremap <silent> <leader>s :Alpha<CR>
nnoremap <silent> <leader>d :Bdelete<CR>
@ -322,11 +323,9 @@ in
},
},
on_open = function(win)
vim.cmd("GitBlameDisable")
vim.cmd("ScrollbarHide")
end,
on_close = function()
vim.cmd("GitBlameEnable")
vim.cmd("ScrollbarShow")
end,
})