nvim: add gitblame

This commit is contained in:
Nydragon 2024-05-25 16:57:20 +09:00
parent 6cc1723294
commit 56935a3e16
2 changed files with 14 additions and 0 deletions

View file

@ -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 = "*",

View file

@ -61,6 +61,7 @@ wk.register({
"Rename a token",
},
x = {
"Toggle Trouble",
x = {
"<cmd>TroubleToggle<cr>",
"Open Trouble",
@ -86,6 +87,12 @@ wk.register({
"",
},
},
b = {
t = {
"<cmd>BlameToggle virtual<cr>",
"Toggle Virtual Blame",
},
},
}, { prefix = "<leader>" })
wk.register({