Skip to content

Commit 3f24417

Browse files
committed
move git blame plugin to custom plugins
1 parent 453e63b commit 3f24417

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

init.lua

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ vim.opt.rtp:prepend(lazypath)
154154
--
155155
-- NOTE: Here is where you install your plugins.
156156
require('lazy').setup({
157+
157158
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
158159
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
159160
'github/copilot.vim', -- GitHub Copilot
@@ -372,25 +373,6 @@ require('lazy').setup({
372373
end,
373374
},
374375

375-
-- Git Blame Plugin
376-
{
377-
'f-person/git-blame.nvim',
378-
-- load the plugin at startup
379-
event = 'VeryLazy',
380-
-- Because of the keys part, you will be lazy loading this plugin.
381-
-- The plugin will only load once one of the keys is used.
382-
-- If you want to load the plugin at startup, add something like event = "VeryLazy",
383-
-- or lazy = false. One of both options will work.
384-
opts = {
385-
-- your configuration comes here
386-
-- for example
387-
enabled = true, -- if you want to enable the plugin
388-
message_template = ' <author> • <date> • <summary> ', -- template for the blame message, check the Message template section for more options
389-
date_format = '%Y-%m-%d %H:%M', -- template for the date, check Date format section for more options
390-
virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options
391-
},
392-
},
393-
394376
-- LSP Plugins
395377
{
396378
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
@@ -934,6 +916,9 @@ require('lazy').setup({
934916

935917
-- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
936918
--
919+
920+
require 'custom.plugins',
921+
937922
-- Here are some example plugins that I've included in the Kickstart repository.
938923
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
939924
--

lua/custom/plugins/init.lua

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
-- You can add your own plugins here or in other files in this directory!
2-
-- I promise not to create any merge conflicts in this directory :)
3-
--
4-
-- See the kickstart.nvim README for more information
5-
return {}
1+
return { -- Git Blame Plugin
2+
{
3+
'f-person/git-blame.nvim',
4+
-- load the plugin at startup
5+
event = 'VeryLazy',
6+
-- Because of the keys part, you will be lazy loading this plugin.
7+
-- The plugin will only load once one of the keys is used.
8+
-- If you want to load the plugin at startup, add something like event = "VeryLazy",
9+
-- or lazy = false. One of both options will work.
10+
opts = {
11+
-- your configuration comes here
12+
-- for example
13+
enabled = true, -- if you want to enable the plugin
14+
message_template = ' <author> • <date> • <summary> ', -- template for the blame message, check the Message template section for more options
15+
date_format = '%Y-%m-%d %H:%M', -- template for the date, check Date format section for more options
16+
virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options
17+
},
18+
},
19+
}

0 commit comments

Comments
 (0)