1 ---@type LazyPluginSpec
8 ---@type BufferlineConfig
11 always_show_bufferline = false,
21 command_palette = false, -- don't position the cmdline and popupmenu together
22 lsp_doc_border = true,
23 long_message_to_split = true,
29 { -- send file written messages to mini
35 opts = { skip = true },
39 config = function(_, opts)
40 -- ensure [w] is written to msg_show so we can match it
41 vim.opt.shortmess:append("w")
42 vim.opt.shortmess:remove("W")
44 require("noice").setup(opts)
49 --TODO: Things that were in vim but are missing
50 -- - git line add/mod/del ar next to branch name rather on right
51 -- - one status line per splits
52 -- - maybe a single one is OK too?
53 -- - I think I want a line stating wihch file is in the split though
54 -- - unix/dos eof markers
55 -- - really I only want to know if it's not unix
56 -- - filetype in text form. It's quite important to glance this quickly
59 "indent-blankline.nvim",
65 animation = require("mini.indentscope").gen_animation.linear({ duration = 10 }),
72 local dashboard = require("alpha.themes.dashboard")
74 ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z
75 ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z
76 ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z
77 ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z
78 ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║
79 ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
82 dashboard.section.header.val = vim.split(logo, "\n")
83 dashboard.section.buttons.val = {
84 dashboard.button("f", " " .. " Find file", ":Telescope find_files <CR>"),
85 dashboard.button("n", " " .. " New file", ":ene <BAR> startinsert <CR>"),
86 dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles <CR>"),
87 dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
88 dashboard.button("s", " " .. " Restore Session", [[:lua require("persistence").load() <cr>]]),
89 dashboard.button("l", " " .. " Lazy", ":Lazy<CR>"),
90 dashboard.button("q", " " .. " Close", ":bdelete<CR>"),
92 for _, button in ipairs(dashboard.section.buttons.val) do
93 button.opts.hl = "AlphaButtons"
94 button.opts.hl_shortcut = "AlphaShortcut"
96 dashboard.section.footer.opts.hl = "Type"
97 dashboard.section.header.opts.hl = "AlphaHeader"
98 dashboard.section.buttons.opts.hl = "AlphaButtons"
99 dashboard.opts.layout[1].val = 8