This commit is contained in:
2025-08-04 03:04:29 +02:00
parent 9c41628613
commit 9800f5d265
7 changed files with 58 additions and 8 deletions

View File

@@ -36,8 +36,44 @@ return {
return '%2l:%-2v'
end
local dashboard = require 'mini.starter'
dashboard.setup {
evaluate_single = true,
header = table.concat({
' ⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣤⣤⣤⣀⡀',
' ⠀⠀⠀⠀⠀⢀⣴⣿⣿⠿⠛⠋⠉⠉⠛⠛⠻⢿⣷⣦⡀',
' ⠀⠀⠀⢀⣴⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣿⣿⣆',
' ⠀⠀⣠⣿⠏⠀⠀⢀⣠⣤⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠹⣿⣿⡄',
' ⠀⣾⣿⠃⠀⠀⠘⠛⠉⠀⠀⠀⠉⠛⠂⠀⠀⠀⠀⠀⠀⠈⣿⣿⣷',
' ⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿',
' ⠘⣿⣿⣆⠀⠀⠀⠀⣠⣤⣤⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⠃',
' ⠀⠛⠻⢿⣿⣷⣶⣾⣿⣿⣿⣿⣿⣷⣦⣄⣀⣀⣀⣤⣴⠿⠛⠁',
'',
}, '\n'),
items = {
{ action = 'edit ~/.config/nvim/init.lua', name = ' Configuration', section = 'Configuration' },
{ action = 'Telescope find_files', name = '󰱼 Rechercher fichier', section = 'Telescope' },
{ action = 'Telescope oldfiles', name = '󰋚 Fichiers récents', section = 'Telescope' },
{ action = 'Telescope live_grep', name = '󰱼 Rechercher texte', section = 'Telescope' },
{ action = 'e .', name = ' Parcourir', section = 'Fichiers' },
{ action = 'qa', name = '󰗼 Quitter', section = 'Quitter' },
},
content_hooks = {
require('mini.starter').gen_hook.adding_bullet '󰐊 ',
require('mini.starter').gen_hook.aligning('center', 'center'),
},
}
-- Simple way to visualize and work with indent scope
local indentscope = require 'mini.indentscope'
indentscope.setup {}
-- Simple way to (un)comment line(s)
local commenter = require 'mini.comment'
commenter.setup {}
-- ... and there is more!
-- Check out: https://github.com/echasnovski/mini.nvim
end,
},
}
}

View File

@@ -8,6 +8,7 @@ return {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
'folke/snacks.nvim', -- optional
},
lazy = false,
keys = {
@@ -22,4 +23,5 @@ return {
},
},
},
}
}