-- Welcome to nvim's systemd :D return { "folke/snacks.nvim", priority = 1000, lazy = false, ---@type snacks.Config opts = { bigfile = { enabled = true }, dashboard = { enabled = true, preset = { -- stylua: ignore start keys = { -- { key = "p", icon = "󰈞 ", desc = "查找项目", action = "Telescope projects" }, { key = "h", icon = " ", desc = "历史文件", action = function () require("fzf-lua").oldfiles() end }, { key = "l", icon = " ", desc = "加载会话", action = "AutoSession search" }, { key = "c", icon = " ", desc = "转到设置", action = function() require("fzf-lua").files({ cwd = "~/.dotfiles/home/dot_config/nvim" }) end, }, { key = "q", icon = "󱊷 ", desc = "退出", action = "qa" }, }, header = [[ ================= =============== =============== ======== ======== \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . // ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .|| || . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . || ||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .|| || . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\ . . . . || ||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\_ . .|. .|| || . _|| || || || || ||_ . || || . _|| || || || |\ `-_/| . || ||_-' || .|/ || || \|. || `-_|| ||_-' || .|/ || || | \ / |-_.|| || ||_-' || || `-_|| || || ||_-' || || | \ / | `|| || `' || || `' || || `' || || | \ / | || || .===' `===. .==='.`===. .===' /==. | \/ | || || .==' \_|-_ `===. .===' _|_ `===. .===' _-|/ `== \/ | || || .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \/ | || || .==' _-' '-__\._-' '-_./__-' `' |. /| | || ||.==' _-' `' | /==.|| ==' _-' N E O V I M \/ `== \ _-' `-_ / `'' ``' ]], --[[header = [[ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣤⣴⣦⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⣿⠿⠿⠿⠿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⣠⣾⣿⣿⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣶⡀⠀⠀⠀⠀ ⠀⠀⠀⣴⣿⣿⠟⠁⠀⠀⠀⣶⣶⣶⣶⡆⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣦⠀⠀⠀ ⠀⠀⣼⣿⣿⠋⠀⠀⠀⠀⠀⠛⠛⢻⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿⣧⠀⠀ ⠀⢸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⡇⠀ ⠀⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⠀ ⠀⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⡟⢹⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⣹⣿⣿⠀ ⠀⣿⣿⣷⠀⠀⠀⠀⠀⠀⣰⣿⣿⠏⠀⠀⢻⣿⣿⡄⠀⠀⠀⠀⠀⠀⣿⣿⡿⠀ ⠀⢸⣿⣿⡆⠀⠀⠀⠀⣴⣿⡿⠃⠀⠀⠀⠈⢿⣿⣷⣤⣤⡆⠀⠀⣰⣿⣿⠇⠀ ⠀⠀⢻⣿⣿⣄⠀⠀⠾⠿⠿⠁⠀⠀⠀⠀⠀⠘⣿⣿⡿⠿⠛⠀⣰⣿⣿⡟⠀⠀ ⠀⠀⠀⠻⣿⣿⣧⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⠏⠀⠀⠀ ⠀⠀⠀⠀⠈⠻⣿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⠟⠁⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠈⠛⠿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⠁⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠛⠛⠛⠛⠛⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ --]] }, sections = { { section = "header" }, { icon = " ", title = "Keymaps", section = "keys", indent = 2, padding = 1 }, { icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 }, { icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 }, { section = "startup" }, }, }, -- stylua: ignore end explorer = { enabled = true, }, indent = { enabled = true }, input = { enabled = true }, notifier = { enabled = true }, quickfile = { enabled = true }, scope = { enabled = true }, scroll = { enabled = false }, statuscolumn = { enabled = true }, -- words = { enabled = true }, image = { enabled = true, -- See: ../lang/markdown/obsidian-nvim.lua img_dirs = { "90 - System/Assets" }, math = { enabled = true, font_size = "small", }, }, }, keys = { { "ba", function() require("snacks").dashboard() end, desc = "Toggle Dashboard", }, { "ft", function() require("snacks").explorer() end, desc = "Toggle File Tree", }, }, }