From 56935a3e161435ef5ac61b397b781ff58482455e Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sat, 25 May 2024 16:57:20 +0900 Subject: [PATCH] nvim: add gitblame --- nvim/lua/plugins.lua | 7 +++++++ nvim/lua/which-key-config.lua | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 405d732..c58d1be 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -182,6 +182,13 @@ require("lazy").setup({ "nvim-lua/plenary.nvim", }, }, + { + "FabijanZulj/blame.nvim", + opts = { + virtual_style = "right", + merge_consecutive = true, + }, + }, { "akinsho/toggleterm.nvim", version = "*", diff --git a/nvim/lua/which-key-config.lua b/nvim/lua/which-key-config.lua index e1178d6..2fd19d3 100644 --- a/nvim/lua/which-key-config.lua +++ b/nvim/lua/which-key-config.lua @@ -61,6 +61,7 @@ wk.register({ "Rename a token", }, x = { + "Toggle Trouble", x = { "TroubleToggle", "Open Trouble", @@ -86,6 +87,12 @@ wk.register({ "", }, }, + b = { + t = { + "BlameToggle virtual", + "Toggle Virtual Blame", + }, + }, }, { prefix = "" }) wk.register({