From 2cbcb8d7ebc5789920c6faeee137f19f5322cd29 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 16 Apr 2024 20:47:50 -0400 Subject: [PATCH] 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. --- home/neovim.nix | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index 29412590..d8b59fb0 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -168,7 +168,6 @@ in nnoremap t :OverCommandLine%s/ nnoremap o :GitBlameToggle nnoremap a :NvimTreeFocus - nnoremap s :Alpha nnoremap d :Bdelete nnoremap f :Files nnoremap g :set hlsearch! @@ -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", "新しいファイル", "ene ") - } - - 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 - ''; }