move git blame plugin to custom plugins
This commit is contained in:
parent
453e63bb98
commit
3f24417060
23
init.lua
23
init.lua
|
@ -154,6 +154,7 @@ vim.opt.rtp:prepend(lazypath)
|
||||||
--
|
--
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
|
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||||
'github/copilot.vim', -- GitHub Copilot
|
'github/copilot.vim', -- GitHub Copilot
|
||||||
|
@ -372,25 +373,6 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Git Blame Plugin
|
|
||||||
{
|
|
||||||
'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 = ' <author> • <date> • <summary> ', -- template for the blame message, check the Message template section for more options
|
|
||||||
date_format = '%Y-%m-%d %H:%M', -- 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
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- LSP Plugins
|
-- LSP Plugins
|
||||||
{
|
{
|
||||||
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
|
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
|
||||||
|
@ -934,6 +916,9 @@ require('lazy').setup({
|
||||||
|
|
||||||
-- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
|
-- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
|
||||||
--
|
--
|
||||||
|
|
||||||
|
require 'custom.plugins',
|
||||||
|
|
||||||
-- Here are some example plugins that I've included in the Kickstart repository.
|
-- Here are some example plugins that I've included in the Kickstart repository.
|
||||||
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
-- You can add your own plugins here or in other files in this directory!
|
return { -- Git Blame Plugin
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
{
|
||||||
--
|
'f-person/git-blame.nvim',
|
||||||
-- See the kickstart.nvim README for more information
|
-- load the plugin at startup
|
||||||
return {}
|
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 = ' <author> • <date> • <summary> ', -- template for the blame message, check the Message template section for more options
|
||||||
|
date_format = '%Y-%m-%d %H:%M', -- 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
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue