gitblame: change binding to use lua function
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
|
"telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
|
||||||
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
||||||
|
"vim-be-good": { "branch": "master", "commit": "4fa57b7957715c91326fcead58c1fa898b9b3625" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" },
|
"vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" },
|
||||||
"vim-gitgutter": { "branch": "main", "commit": "e801371917e52805a4ceb1e93f55ed1fba712f82" }
|
"vim-gitgutter": { "branch": "main", "commit": "e801371917e52805a4ceb1e93f55ed1fba712f82" }
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,13 @@
|
|||||||
return {
|
return {
|
||||||
'f-person/git-blame.nvim',
|
'f-person/git-blame.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('gitblame').setup({
|
gitblame = require('gitblame')
|
||||||
|
gitblame.setup({
|
||||||
enabled = true,
|
enabled = true,
|
||||||
date_format = '%r'
|
date_format = '%r'
|
||||||
})
|
})
|
||||||
vim.keymap.set("n", "<leader>gbt", ':GitBlameToggle<CR>')
|
vim.keymap.set("n", "<leader>gbt", function ()
|
||||||
|
gitblame.toggle()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user