Compare commits

...

2 commits

Author SHA1 Message Date
3f2e3ece89 refactor(starship): make colors vars 2023-10-07 22:08:25 -04:00
2d4135552c feat(nvim): enable aliases 2023-10-07 22:07:13 -04:00
2 changed files with 20 additions and 14 deletions

View file

@ -1,45 +1,51 @@
{ lib, ... }: { lib, ... }:
{ {
programs.starship = { programs.starship = let
textColor = "#e3e5e5";
firstColor = "#bd93f9";
secondColor = "#715895";
thirdColor = "#382c4a";
fourthColor = "#120e18";
in {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
format = lib.concatStrings [ format = lib.concatStrings [
"" ""
"[](fg:#bd93f9)" "[](fg:${firstColor})"
"[ ](bg:#bd93f9 fg:#090c0c)" "[ ](bg:${firstColor} fg:#090c0c)"
"[](bg:#715895 fg:#bd93f9)" "[](bg:${secondColor} fg:${firstColor})"
"$username$hostname" "$username$hostname"
"$sudo" "$sudo"
"[](fg:#715895 bg:#382c4a)" "[](fg:${secondColor} bg:${thirdColor})"
"$directory" "$directory"
"[](fg:#382c4a bg:#120e18)" "[](fg:${thirdColor} bg:${fourthColor})"
"$git_branch" "$git_branch"
"[](fg:#120e18)" "[](fg:${fourthColor})"
"\n$shlvl$nix_shell$character" "\n$shlvl$nix_shell$character"
]; ];
sudo = { sudo = {
disabled = false; disabled = false;
style = "fg:#e3e5e5 bg:#715895"; style = "fg:${textColor} bg:${secondColor}";
format = "[as root ]($style)"; format = "[as root ]($style)";
}; };
username = { username = {
show_always = true; show_always = true;
style_user = "fg:#e3e5e5 bg:#715895"; style_user = "fg:${textColor} bg:${secondColor}";
format = "[ $user]($style)"; format = "[ $user]($style)";
}; };
hostname = { hostname = {
ssh_only = false; ssh_only = false;
style = "fg:#e3e5e5 bg:#715895"; style = "fg:${textColor} bg:${secondColor}";
format = "[@$hostname ]($style)"; format = "[@$hostname ]($style)";
}; };
directory = { directory = {
style = "fg:#bd93f9 bg:#382c4a"; style = "fg:${firstColor} bg:${thirdColor}";
format = "[ $path ]($style)"; format = "[ $path ]($style)";
truncate_to_repo = false; truncate_to_repo = false;
truncation_length = 0; truncation_length = 0;
@ -53,7 +59,7 @@
}; };
git_branch = { git_branch = {
style = "fg:#715895 bg:#120e18"; style = "fg:${secondColor} bg:${fourthColor}";
symbol = ""; symbol = "";
format = "[ $symbol $branch ]($style)"; format = "[ $symbol $branch ]($style)";
}; };
@ -112,8 +118,6 @@
sudo = "sudo "; sudo = "sudo ";
frick = "sudo $(fc -ln -1)"; frick = "sudo $(fc -ln -1)";
vi = "nvim";
vim = "nvim";
nivm = "nvim"; nivm = "nvim";
nivim = "nvim"; nivim = "nvim";

View file

@ -18,6 +18,8 @@ in
programs.neovim = { programs.neovim = {
enable = true; enable = true;
viAlias = true;
vimAlias = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly;
extraConfig = builtins.concatStringsSep "\n" [ extraConfig = builtins.concatStringsSep "\n" [