add dashboard
This commit is contained in:
parent
c17efa8b7f
commit
81dbb73b66
1 changed files with 58 additions and 0 deletions
58
config/programs/vim/modules/visual/dashboard.nix
Normal file
58
config/programs/vim/modules/visual/dashboard.nix
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
output.plugins = with pkgs.vimPlugins; [dashboard-nvim];
|
||||||
|
plugin.setup.dashboard = {
|
||||||
|
custom_header = [
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗"
|
||||||
|
" ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║"
|
||||||
|
" ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║"
|
||||||
|
" ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║"
|
||||||
|
" ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║"
|
||||||
|
" ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝"
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
" "
|
||||||
|
];
|
||||||
|
custom_center = [
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "Find File ";
|
||||||
|
action = "Leaderf file --popup";
|
||||||
|
shortcut = "<Leader> f f";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "Recently opened files ";
|
||||||
|
action = "Leaderf mru --popup";
|
||||||
|
shortcut = "<Leader> f r";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "Project grep ";
|
||||||
|
action = "Leaderf rg --popup";
|
||||||
|
shortcut = "<Leader> f g";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "Open Nvim config ";
|
||||||
|
action = "tabnew $MYVIMRC | tcd %:p:h";
|
||||||
|
shortcut = "<Leader> e v";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "New file ";
|
||||||
|
action = "enew";
|
||||||
|
shortcut = "e ";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
icon = " ";
|
||||||
|
desc = "Quit Nvim ";
|
||||||
|
action = "qa";
|
||||||
|
shortcut = "q ";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue