From 19fc4e4b03e01be4369965389c8bb4a7a061ea00 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Tue, 19 Aug 2025 13:22:46 -0400 Subject: [PATCH] Add git-blame --- lua/custom/plugins/git-blame.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/custom/plugins/git-blame.lua diff --git a/lua/custom/plugins/git-blame.lua b/lua/custom/plugins/git-blame.lua new file mode 100644 index 00000000..97a16202 --- /dev/null +++ b/lua/custom/plugins/git-blame.lua @@ -0,0 +1,17 @@ +return { + 'f-person/git-blame.nvim', + -- load the plugin at startup + event = 'VeryLazy', + -- Because of the keys part, you will be lazy loading this plugin. + -- The plugin will only load once one of the keys is used. + -- If you want to load the plugin at startup, add something like event = "VeryLazy", + -- or lazy = false. One of both options will work. + opts = { + -- your configuration comes here + -- for example + enabled = true, -- if you want to enable the plugin + message_template = ' • <>', -- template for the blame message, check the Message template section for more options + date_format = '%m-%d-%Y %H:%M:%S', -- template for the date, check Date format section for more options + virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options + }, +}