From 4c5c478f865d042e66cc59f510f9704e7fe22cb0 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 23 Jan 2024 18:19:29 +0100 Subject: vim: use inline preview for gitsigns --- dotfiles/vim/lua/myConfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles/vim') diff --git a/dotfiles/vim/lua/myConfig.lua b/dotfiles/vim/lua/myConfig.lua index 305f52f..f38b445 100644 --- a/dotfiles/vim/lua/myConfig.lua +++ b/dotfiles/vim/lua/myConfig.lua @@ -195,7 +195,7 @@ require("gitsigns").setup { map('n', 'hS', gs.stage_buffer, { desc = "Stage buffer" }) map('n', 'hu', gs.undo_stage_hunk, { desc = "Undo stage hunk" }) map('n', 'hR', gs.reset_buffer, { desc = "Reset buffer" }) - map('n', 'hp', gs.preview_hunk, { desc = "Preview hunk" }) + map('n', 'hp', gs.preview_hunk_inline, { desc = "Preview hunk" }) map('n', 'hb', function() gs.blame_line { full = true } end, { desc = "Blame line" }) map('n', 'tb', gs.toggle_current_line_blame, { desc = "Toggle current line blame" }) map('n', 'hd', gs.diffthis, { desc = "Diff this" }) -- cgit v1.2.3