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", "nvim-lua/plenary.nvim",
}, },
}, },
{
"FabijanZulj/blame.nvim",
opts = {
virtual_style = "right",
merge_consecutive = true,
},
},
{ {
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
version = "*", version = "*",

View file

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