neovim: Drop alpha-nvim startify

This was cute but I wasn't actually using it and it was increasing the
startup time of neovim by a whopping 600 milliseconds on average.
This commit is contained in:
Donovan Glover 2024-04-16 20:47:50 -04:00
parent f6f180ffc3
commit 2cbcb8d7eb
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -168,7 +168,6 @@ in
nnoremap <silent> <leader>t :OverCommandLine<CR>%s/
nnoremap <silent> <leader>o :GitBlameToggle<CR>
nnoremap <silent> <leader>a :NvimTreeFocus<CR>
nnoremap <silent> <leader>s :Alpha<CR>
nnoremap <silent> <leader>d :Bdelete<CR>
nnoremap <silent> <leader>f :Files<CR>
nnoremap <silent> <leader>g :set hlsearch!<CR>
@ -519,35 +518,6 @@ in
let g:vim_markdown_json_frontmatter = 1
'';
}
{
plugin = alpha-nvim;
type = "lua";
config = /* lua */ ''
local startify = require('alpha.themes.startify')
startify.section.header.val = vim.fn.system("${pkgs.fish}/bin/fish -c 'cat (random choice (${pkgs.fd}/bin/fd . ${pkgs.ponysay}/share/ponysay/quotes --ignore-file ~/.config/fd/ponyignore)) | head -n 1'")
startify.section.top_buttons.val = {
startify.button("e", "", "<cmd>ene <CR>")
}
startify.section.mru.val = { { type = "padding", val = 0 } }
startify.section.mru_cwd.val = {
{ type = "padding", val = 1 },
{ type = "text", val = "", opts = { hl = "SpecialComment", shrink_margin = false } },
{ type = "padding", val = 1 },
{
type = "group",
val = function()
return { startify.mru(0, vim.fn.getcwd()) }
end,
opts = { shrink_margin = false },
}
}
require('alpha').setup(startify.config)
'';
}
{
plugin = nvim-ts-autotag;
type = "lua";
@ -649,9 +619,4 @@ in
rainbow-delimiters-nvim
];
};
xdg.configFile."fd/ponyignore".text = ''
snowflake+horsepower+bulkbiceps.1
snowflake+horsepower+bulkbiceps.2
'';
}