1 ---@type LazyPluginSpec
8 ---@type BufferlineConfig
11 always_show_bufferline = false,
16 "stevearc/dressing.nvim",
20 start_in_insert = false,
31 command_palette = false, -- don't position the cmdline and popupmenu together
32 lsp_doc_border = true,
33 long_message_to_split = true,
39 { -- send file written messages to mini
45 opts = { skip = true },
49 config = function(_, opts)
50 -- ensure [w] is written to msg_show so we can match it
51 vim.opt.shortmess:append("w")
52 vim.opt.shortmess:remove("W")
54 require("noice").setup(opts)
59 --TODO: Things that were in vim but are missing
60 -- - git line add/mod/del ar next to branch name rather on right
61 -- - one status line per splits
62 -- - maybe a single one is OK too?
63 -- - I think I want a line stating wihch file is in the split though
64 -- - unix/dos eof markers
65 -- - really I only want to know if it's not unix
66 -- - filetype in text form. It's quite important to glance this quickly
69 "indent-blankline.nvim",
75 animation = require("mini.indentscope").gen_animation.linear({ duration = 10 }),
80 "nvimdev/dashboard-nvim",
81 -- TODO: create cool dashboard header
82 -- generate logo from text here:
83 -- https://patorjk.com/software/taag/#p=testall&v=0&f=Computer&t=NEOVIM
84 -- Can also use use `chafa` and aplha.term to generate text from cli, see
85 -- https://github.com/goolord/alpha-nvim/discussions/16#discussioncomment-4915947
86 -- https://github.com/goolord/alpha-nvim/discussions/16#discussioncomment-5065731
87 -- To add orgmode agenda button in alpha
88 -- dashboard.button("a", " " .. " View Agenda", ":lua require('orgmode').action('agenda.agenda')<CR>"),
91 ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z
92 ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z
93 ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z
94 ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z
95 ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║
96 ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
99 logo = string.rep("\n", 8) .. logo .. "\n\n"
104 -- this is taken care of by lualine
105 -- enabling this messes up the actual laststatus setting after loading a file
109 header = vim.split(logo, "\n"),
112 { action = [[lua require('orgmode').action('agenda.agenda')]], desc = " View Agenda", icon = " ", key = "a" },
113 { action = "Telescope find_files", desc = " Find file", icon = " ", key = "f" },
114 { action = "ene | startinsert", desc = " New file", icon = " ", key = "n" },
115 { action = "Telescope oldfiles", desc = " Recent files", icon = " ", key = "r" },
116 { action = [[lua require("lazyvim.util").telescope.config_files()()]], desc = " Config", icon = " ", key = "c" },
117 { action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" },
118 { action = "LazyExtras", desc = " Lazy Extras", icon = " ", key = "x" },
119 { action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
122 local stats = require("lazy").stats()
123 local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
124 return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
129 for _, button in ipairs(opts.config.center) do
130 button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
131 button.key_format = " %s"
134 -- close Lazy and re-open when the dashboard is ready
135 if vim.o.filetype == "lazy" then
137 vim.api.nvim_create_autocmd("User", {
138 pattern = "DashboardLoaded",
139 callback = function()
140 require("lazy").show()