From d1794187139c1224a5699688d6e928ed7d137486 Mon Sep 17 00:00:00 2001 From: Dietrich Moerman Date: Wed, 4 Dec 2024 13:39:12 +0100 Subject: [PATCH] Map `g.` for fugitive blame and diff --- nvim/.config/nvim/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 7c17c7a..c6b205c 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -134,6 +134,10 @@ vim.api.nvim_create_autocmd('FileType', { end, }) +-- Configure fugitive. +map('n', 'gb', [[:Git blame]]) +map('n', 'gd', [[:Gdiff]]) + -- Configure vim-test. vim.g['test#strategy'] = 'neovim' vim.g['test#neovim#term_position'] = 'botright 15'