zsh: add plugins
All checks were successful
Check flake / build-amd64-linux (push) Successful in 3m52s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 3m52s
This commit is contained in:
parent
d6dbe47932
commit
303f476db0
@ -27,6 +27,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
strategy = [ "completion" ];
|
strategy = [ "completion" ];
|
||||||
};
|
};
|
||||||
|
defaultKeymap = "viins";
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
@ -41,10 +42,6 @@ in
|
|||||||
size = 1000000;
|
size = 1000000;
|
||||||
};
|
};
|
||||||
|
|
||||||
historySubstringSearch = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
## Directories
|
## Directories
|
||||||
setopt AUTO_PUSHD
|
setopt AUTO_PUSHD
|
||||||
@ -83,8 +80,8 @@ in
|
|||||||
PS1="%B%{$fg[magenta]%}%~%{$reset_color%} $%b "
|
PS1="%B%{$fg[magenta]%}%~%{$reset_color%} $%b "
|
||||||
|
|
||||||
## Vi mode
|
## Vi mode
|
||||||
bindkey -v
|
|
||||||
export KEYTIMEOUT=1
|
export KEYTIMEOUT=1
|
||||||
|
bindkey '^R' mcfly-history-widget
|
||||||
|
|
||||||
## Zsh line editor
|
## Zsh line editor
|
||||||
unsetopt BEEP
|
unsetopt BEEP
|
||||||
@ -95,15 +92,40 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
|
{
|
||||||
|
name = "zsh-vi-mode";
|
||||||
|
src = zsh-vi-mode;
|
||||||
|
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "fast-syntax-highlighting";
|
name = "fast-syntax-highlighting";
|
||||||
src = zsh-fast-syntax-highlighting;
|
src = zsh-fast-syntax-highlighting;
|
||||||
file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh";
|
file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "zsh-vi-mode";
|
name = "jq-zsh-plugin";
|
||||||
src = zsh-vi-mode;
|
src = jq-zsh-plugin;
|
||||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
file = "share/jq-zsh-plugin/jq.plugin.zsh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-autopair";
|
||||||
|
src = zsh-autopair;
|
||||||
|
file = "share/zsh/zsh-autopair/autopair.zsh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-forgit";
|
||||||
|
src = zsh-forgit;
|
||||||
|
file = "share/zsh/zsh-forgit/forgit.plugin.zsh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-fzf-tab";
|
||||||
|
src = zsh-fzf-tab;
|
||||||
|
file = "share/fzf-tab/fzf-tab.plugin.zsh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
src = zsh-nix-shell;
|
||||||
|
file = "share/zsh-nix-shell/nix-shell.plugin.zsh";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -115,6 +137,7 @@ in
|
|||||||
MODE_CURSOR_SEARCH = "#e7c547 steady underline";
|
MODE_CURSOR_SEARCH = "#e7c547 steady underline";
|
||||||
MODE_CURSOR_VISUAL = "$MODE_CURSOR_VICMD steady bar";
|
MODE_CURSOR_VISUAL = "$MODE_CURSOR_VICMD steady bar";
|
||||||
MODE_CURSOR_VLINE = "$MODE_CURSOR_VISUAL #54ced6";
|
MODE_CURSOR_VLINE = "$MODE_CURSOR_VISUAL #54ced6";
|
||||||
|
ZVM_LINE_INIT_MODE = "i";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@ -137,13 +160,17 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-index.enable = true;
|
broot.enable = true;
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
package = pkgs.unstable.fzf;
|
package = pkgs.unstable.fzf;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mcfly.enable = true;
|
||||||
|
navi.enable = true;
|
||||||
|
nix-index.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
user.packages = with pkgs; [
|
user.packages = with pkgs; [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user