Add basic packages and configured zsh and nvim
This commit is contained in:
28
zsh/zsh.nix
Normal file
28
zsh/zsh.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ pkgs, ... }: {
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
defaultKeymap = "viins";
|
||||
history.extended = true;
|
||||
initExtra = ''
|
||||
${builtins.readFile ./zshrc}
|
||||
'';
|
||||
sessionVariables = rec {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
plugins = [
|
||||
{
|
||||
name = "zsh-autosuggestions";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "zsh-users";
|
||||
repo = "zsh-autosuggestions";
|
||||
rev = "v0.6.3";
|
||||
sha256 = "1h8h2mz9wpjpymgl2p7pc146c1jgb3dggpvzwm9ln3in336wl95c";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user