diff --git a/init.lua b/init.lua index 38cb48b5..555ad31b 100644 --- a/init.lua +++ b/init.lua @@ -898,9 +898,6 @@ require('lazy').setup({ return '%2l:%-2v' end - -- Starter screen - require('mini.starter').setup() - -- Jump to next/previous single character require('mini.jump').setup() @@ -917,6 +914,7 @@ require('lazy').setup({ -- Check out: https://github.com/echasnovski/mini.nvim end, }, + { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', diff --git a/lua/custom/plugins/mini.lua b/lua/custom/plugins/mini.lua index 0090bbe3..3f0e59b2 100644 --- a/lua/custom/plugins/mini.lua +++ b/lua/custom/plugins/mini.lua @@ -152,4 +152,47 @@ return { }) end, }, + + { + "echasnovski/mini.starter", + enabled = false, + config = function () + require('mini.starter').setup({ + -- Define the header + header = table.concat({ + "================= =============== =============== ======== ========", + "\\\\ . . . . . . .\\\\ //. . . . . . .\\\\ //. . . . . . .\\\\ \\\\. . .\\\\// . . //", + "||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\\/ . . .||", + "|| . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||", + "||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||", + "|| . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\\ . . . . ||", + "||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\\_ . .|. .||", + "|| . _|| || || || || ||_ . || || . _|| || || || |\\ `-_/| . ||", + "||_-' || .|/ || || \\|. || `-_|| ||_-' || .|/ || || | \\ / |-_.||", + "|| ||_-' || || `-_|| || || ||_-' || || | \\ / | `||", + "|| `' || || `' || || `' || || | \\ / | ||", + "|| .===' `===. .==='.`===. .===' /==. | \\/ | ||", + "|| .==' \\_|-_ `===. .===' _|_ `===. .===' _-|/ `== \\/ | ||", + "|| .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \\/ | ||", + "|| .==' _-' `-__\\._-' `-_./__-' `' |. /| | ||", + "||.==' _-' `' | /==.||", + "==' _-' N E O V I M \\/ `==", + "\\ _-' `-_ /", + " `'' ``'", + }, "\n"), + + -- Define the items to display in the starter + items = { + { name = 'New File', action = 'enew', section = 'Actions' }, + { name = 'Open File', action = 'Telescope find_files', section = 'Actions' }, + { name = 'Recent Files', action = 'Telescope oldfiles', section = 'Actions' }, + { name = 'Config', action = 'edit ~/.config/nvim/init.lua', section = 'Config' }, + { name = 'Quit', action = 'qall', section = 'Actions' }, + }, + + -- Define the footer + footer = os.date("%Y-%m-%d %H:%M:%S"), + }) + end + }, }