mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-26 14:42:27 +01:00
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:
parent
f6f180ffc3
commit
2cbcb8d7eb
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user