3 { 'echasnovski/mini.clue',
4 -- NOTE: this caused some issue with unterminated mappings, i.e. <L>gc when there
5 -- is also <L>gcc. It would simply terminate early and not allow for next mapping.
9 { mode = 'n', keys = '<Leader>' },
10 { mode = 'x', keys = '<Leader>' },
12 { mode = 'n', keys = 'g' },
13 { mode = 'x', keys = 'g' },
15 { mode = 'n', keys = "'" },
16 { mode = 'n', keys = '`' },
17 { mode = 'x', keys = "'" },
18 { mode = 'x', keys = '`' },
20 { mode = 'n', keys = '<C-w>' },
22 { mode = 'n', keys = 'z' },
23 { mode = 'x', keys = 'z' },
26 { mode = 'n', keys = '<Leader>b', desc = '+Buffers' },
27 { mode = 'n', keys = '<Leader>c', desc = '+LSP' },
36 ---@type BufferlineConfig
39 always_show_bufferline = false,
44 "stevearc/dressing.nvim",
48 start_in_insert = false,
59 command_palette = false, -- don't position the cmdline and popupmenu together
60 lsp_doc_border = true,
61 long_message_to_split = true,
67 { -- send file written messages to mini
73 opts = { skip = true },
77 config = function(_, opts)
78 -- ensure [w] is written to msg_show so we can match it
79 vim.opt.shortmess:append("w")
80 vim.opt.shortmess:remove("W")
82 require("noice").setup(opts)
87 --TODO: Things that were in vim but are missing
88 -- - git line add/mod/del ar next to branch name rather on right
89 -- - one status line per splits
90 -- - maybe a single one is OK too?
91 -- - I think I want a line stating wihch file is in the split though
92 -- - unix/dos eof markers
93 -- - really I only want to know if it's not unix
94 -- - filetype in text form. It's quite important to glance this quickly
97 "indent-blankline.nvim",
100 "echasnovski/mini.indentscope",
101 version = false, -- wait till new 0.7.0 release to put it back on semver
103 opts = function (_, opts)
106 animation = require("mini.indentscope").gen_animation.linear({ duration = 10 })
112 "nvimdev/dashboard-nvim",
113 -- TODO: create cool dashboard header
114 -- generate logo from text here:
115 -- https://patorjk.com/software/taag/#p=testall&v=0&f=Computer&t=NEOVIM
116 -- Can also use use `chafa` and aplha.term to generate text from cli, see
117 -- https://github.com/goolord/alpha-nvim/discussions/16#discussioncomment-4915947
118 -- https://github.com/goolord/alpha-nvim/discussions/16#discussioncomment-5065731
119 -- To add orgmode agenda button in alpha
120 -- dashboard.button("a", " " .. " View Agenda", ":lua require('orgmode').action('agenda.agenda')<CR>"),
123 ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z
124 ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z
125 ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z
126 ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z
127 ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║
128 ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
131 logo = string.rep("\n", 8) .. logo .. "\n\n"
136 -- this is taken care of by lualine
137 -- enabling this messes up the actual laststatus setting after loading a file
141 header = vim.split(logo, "\n"),
144 { action = [[lua require('orgmode').action('agenda.agenda')]], desc = " View Agenda", icon = " ", key = "a" },
145 { action = "Telescope find_files", desc = " Find file", icon = " ", key = "f" },
146 { action = "ene | startinsert", desc = " New file", icon = " ", key = "n" },
147 { action = "Telescope oldfiles", desc = " Recent files", icon = " ", key = "r" },
148 { action = [[lua require("lazyvim.util").telescope.config_files()()]], desc = " Config", icon = " ", key = "c" },
149 { action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" },
150 { action = "LazyExtras", desc = " Lazy Extras", icon = " ", key = "x" },
151 { action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
154 local stats = require("lazy").stats()
155 local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
156 return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
161 for _, button in ipairs(opts.config.center) do
162 button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
163 button.key_format = " %s"
166 -- close Lazy and re-open when the dashboard is ready
167 if vim.o.filetype == "lazy" then
169 vim.api.nvim_create_autocmd("User", {
170 pattern = "DashboardLoaded",
171 callback = function()
172 require("lazy").show()
181 "SmiteshP/nvim-navic",