Configure Neovim

This commit is contained in:
Paul-Henri Froidmont 2024-07-12 04:12:20 +02:00
parent 72b28d88d2
commit 106f9fb7bf
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
6 changed files with 691 additions and 483 deletions

View file

@ -1,11 +1,9 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.zsh;
in {
options.modules.desktop.zsh = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
options.modules.desktop.zsh = { enable = lib.my.mkBoolOpt false; };
config = lib.mkIf cfg.enable {
environment.pathsToLink = [ "/share/zsh" ];
@ -30,8 +28,6 @@ in {
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
eval $(${pkgs.thefuck}/bin/thefuck --alias)
'';
oh-my-zsh = {
enable = true;
@ -48,6 +44,10 @@ in {
}
];
};
programs.thefuck = {
enable = true;
enableZshIntegration = true;
};
programs.starship = {
enable = true;
enableZshIntegration = true;