diff --git a/init.lua b/init.lua index 453afbb6..b859a477 100644 --- a/init.lua +++ b/init.lua @@ -313,6 +313,9 @@ require('lazy').setup({ { 's', group = '[S]earch', mode = { 'n', 'v' } }, { 't', group = '[T]oggle' }, { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, + + { 'g', group = '[G]it' }, + { 'n', group = '[N]otepad' }, }, }, }, @@ -853,7 +856,7 @@ require('lazy').setup({ -- ... and there is more! -- Check out: https://github.com/nvim-mini/mini.nvim - require('mini.starter').setup() + -- require('mini.starter').setup() end, }, diff --git a/lua/custom/plugins/snacks.lua b/lua/custom/plugins/snacks.lua new file mode 100644 index 00000000..3ba6f6df --- /dev/null +++ b/lua/custom/plugins/snacks.lua @@ -0,0 +1,24 @@ +return { + 'folke/snacks.nvim', + priority = 1000, + lazy = false, + ---@type snacks.Config + opts = { + --TODO: Use this for a bit and compare to mini dashboard + --TODO: design a style and featuers for my dashboard + dashboard = { enabled = true }, + gitbrowse = { enabled = true }, + lazygit = { enabled = true }, + --TODO: determine a method for deleting scratches easily + scratch = { enabled = true }, + terminal = { enabled = true }, + }, + keys = { + { '=', function() Snacks.dashboard.open() end, desc = 'Dashboard' }, + { 'gb', function() Snacks.gitbrowse.open() end, desc = 'Open Git Repository in Browser' }, + { 'gl', function() Snacks.lazygit.open() end, desc = 'Open Lazy Git' }, + { 'no', function() Snacks.scratch() end, desc = 'Open Notepad' }, + { 'ns', function() Snacks.scratch.select() end, desc = 'Select Note' }, + { '', function() Snacks.terminal() end, desc = 'Open Terminal' }, + }, +}