Skip to content

Commit a09538d

Browse files
committed
added git-blame plugin
1 parent 15143aa commit a09538d

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

lazy-lock.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
33
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
4-
"auto-session": { "branch": "main", "commit": "21e33854fb3e561cb738dfefcd9d1d84fe6faaef" },
4+
"auto-session": { "branch": "main", "commit": "9d02776ed42874d37869dc683396234e3724b52d" },
55
"bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" },
66
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
77
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
88
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
99
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
10-
"conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
10+
"conform.nvim": { "branch": "master", "commit": "40d4e98fcc3e6f485f0e8924c63734bc7e305967" },
1111
"dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
1212
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
13-
"friendly-snippets": { "branch": "main", "commit": "00ba9dd3df89509f95437b8d595553707c46d5ea" },
14-
"indent-blankline.nvim": { "branch": "master", "commit": "18603eb949eba08300799f64027af11ef922283f" },
13+
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
14+
"git-blame.nvim": { "branch": "master", "commit": "2883a7460f611c2705b23f12d58d398d5ce6ec00" },
15+
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
1516
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
1617
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
1718
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
@@ -23,19 +24,19 @@
2324
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
2425
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
2526
"nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
26-
"nvim-lspconfig": { "branch": "master", "commit": "fb453a1a443b6ea6b54a1e4c101b1160c9d37950" },
27+
"nvim-lspconfig": { "branch": "master", "commit": "c38af37e4ee71d70b7d60267d96b0a83e5d346f5" },
2728
"nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
2829
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
29-
"nvim-tree.lua": { "branch": "master", "commit": "c9104a5d079db5a158c9562c54689df27d52dccc" },
30-
"nvim-treesitter": { "branch": "master", "commit": "cc2c11c403a9143827501223b4ee64432dcaf246" },
30+
"nvim-tree.lua": { "branch": "master", "commit": "5ad87620ec9d1190d15c88171a3f0122bc16b0fe" },
31+
"nvim-treesitter": { "branch": "master", "commit": "19079207ba4a8c7ed956f40a111a22b1a2dfa6e8" },
3132
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
32-
"nvim-ts-context-commentstring": { "branch": "main", "commit": "44fd461b879d80a21d5041f312f070f22551c0bc" },
33+
"nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" },
3334
"nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" },
3435
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
3536
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
3637
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
3738
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
38-
"tokyonight.nvim": { "branch": "main", "commit": "efd1417aa01af618426fe1cf507c5458090458f2" },
39+
"tokyonight.nvim": { "branch": "main", "commit": "2c85fad417170d4572ead7bf9fdd706057bd73d7" },
3940
"trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" },
4041
"vim-maximizer": { "branch": "master", "commit": "2e54952fe91e140a2e69f35f22131219fcd9c5f1" },
4142
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" },

lua/nivi/plugins/f-person.lua

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
return {
2+
"f-person/git-blame.nvim",
3+
-- load the plugin at startup
4+
event = "VeryLazy",
5+
-- Because of the keys part, you will be lazy loading this plugin.
6+
-- The plugin wil only load once one of the keys is used.
7+
-- If you want to load the plugin at startup, add something like event = "VeryLazy",
8+
-- or lazy = false. One of both options will work.
9+
opts = {
10+
-- your configuration comes here
11+
-- for example
12+
enabled = true, -- if you want to enable the plugin
13+
message_template = " <summary> • <date> • <author> • <<sha>>", -- template for the blame message, check the Message template section for more options
14+
date_format = "%m-%d-%Y %H:%M:%S", -- template for the date, check Date format section for more options
15+
virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options
16+
},
17+
}

lua/nivi/plugins/which-key.lua

+2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ return {
3232
{ "<leader>w", group = "Session" }, -- group
3333
{ "<leader>x", group = "Trouble" }, -- group
3434
{ "<leader>q", group = "Quit" }, -- group
35+
{ "<leader>g", group = "Git" }, -- group
3536
{
3637
mode = { "n" },
3738
{ "<C-a>", "ggVG", desc = "Selec All" },
3839
{ "<leader>h", ":nohl<CR>", desc = "Clear search highlights" },
40+
{ "<leader>gb", ":GitBlameToggle<CR>", desc = "On/Off blame" },
3941
{ "<leader>qq", ":qa<CR>", desc = "Close all buffers" },
4042
{ "<leader>qf", ":qa!<CR>", desc = "Close all and discard changes" },
4143
{ "<leader>qF", ":xa!<CR>", desc = "Close all and force save changes" },

0 commit comments

Comments
 (0)