nvim: add gitblame plugin
This commit is contained in:
parent
dbfe4530c2
commit
1710a2b254
3 changed files with 19 additions and 5 deletions
|
@ -15,3 +15,4 @@ require("thomas.plugins.gitsigns")
|
|||
require("thomas.plugins.copilot_plugin")
|
||||
require("thomas.plugins.nvim-tree")
|
||||
require("thomas.plugins.rainbow-delimiters")
|
||||
require("thomas.plugins.gitblame")
|
||||
|
|
|
@ -29,17 +29,21 @@ end
|
|||
-- plugins to install
|
||||
return packer.startup(function(use)
|
||||
-- packer can manage itself
|
||||
|
||||
use("wbthomason/packer.nvim")
|
||||
-- git
|
||||
use("kdheepak/lazygit.nvim")
|
||||
use("tpope/vim-fugitive")
|
||||
use("f-person/git-blame.nvim")
|
||||
use("lewis6991/gitsigns.nvim") -- show line modifications on left hand side
|
||||
use("joshdick/onedark.vim")
|
||||
use("junegunn/vim-easy-align")
|
||||
use("junegunn/rainbow_parentheses.vim")
|
||||
use("HiPhish/rainbow-delimiters.nvim")
|
||||
use("tpope/vim-fugitive")
|
||||
use("junegunn/gv.vim")
|
||||
use("ap/vim-css-color")
|
||||
use("wakatime/vim-wakatime")
|
||||
use("psliwka/vim-smoothie")
|
||||
use("kdheepak/lazygit.nvim")
|
||||
use("nvim-lua/plenary.nvim")
|
||||
use("szw/vim-maximizer")
|
||||
use("tpope/vim-commentary")
|
||||
|
@ -95,9 +99,6 @@ return packer.startup(function(use)
|
|||
use("windwp/nvim-autopairs") -- autoclose parens, brackets, quotes, etc...
|
||||
use({ "windwp/nvim-ts-autotag", after = "nvim-treesitter" }) -- autoclose tags
|
||||
|
||||
-- git integration
|
||||
use("lewis6991/gitsigns.nvim") -- show line modifications on left hand side
|
||||
|
||||
-- GitHub Copilot
|
||||
|
||||
use({
|
||||
|
|
12
nvim/lua/thomas/plugins/gitblame.lua
Normal file
12
nvim/lua/thomas/plugins/gitblame.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
-- import gitblame safely
|
||||
local gitblame_status, gitblame = pcall(require, "gitblame")
|
||||
if not gitblame then
|
||||
return
|
||||
end
|
||||
|
||||
gitblame.setup({
|
||||
message_template = " <author> • <date> • <summary> • <sha>",
|
||||
date_format = "%r (%x)",
|
||||
message_when_not_committed = "",
|
||||
gitblame_use_blame_commit_file_urls = true,
|
||||
})
|
Loading…
Add table
Reference in a new issue