zsh: cleanup and fixes
This commit is contained in:
parent
2216e20bd7
commit
f587c43bb0
4 changed files with 58 additions and 35 deletions
|
@ -7,19 +7,18 @@
|
||||||
changeDirWidgetCommand = "fd --type directory --hidden --no-ignore";
|
changeDirWidgetCommand = "fd --type directory --hidden --no-ignore";
|
||||||
|
|
||||||
colors = {
|
colors = {
|
||||||
fg = "#f8f8f2";
|
fg = "-1";
|
||||||
"fg+" = "#f8f8f2";
|
"fg+" = "-1";
|
||||||
bg = "#282a36";
|
bg = "-1";
|
||||||
"bg+" = "#44475a";
|
"bg+" = "-1";
|
||||||
hl = "#bd93f9";
|
hl = "#5fff87";
|
||||||
"hl+" = "#bd93f9";
|
"hl+" = "#ffaf5f";
|
||||||
|
|
||||||
info = "#ffb86c";
|
info = "#af87ff";
|
||||||
prompt = "#50fa7b";
|
prompt = "#5fff87";
|
||||||
pointer = "#ff79c6";
|
pointer = "#ff87d7";
|
||||||
marker = "#ff79c6";
|
marker = "#ff87d7";
|
||||||
spinner = "#ffb86c";
|
spinner = "#ff87d7";
|
||||||
header = "#6272a4";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enableBashIntegration = false;
|
enableBashIntegration = false;
|
||||||
|
|
|
@ -404,6 +404,9 @@ in
|
||||||
|
|
||||||
activation.neovimTreeSitter = lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ ''
|
activation.neovimTreeSitter = lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ ''
|
||||||
$VERBOSE_ECHO "Updating tree-sitter parsers"
|
$VERBOSE_ECHO "Updating tree-sitter parsers"
|
||||||
|
|
||||||
|
export CC='${pkgs.stdenv.cc}/bin/${pkgs.stdenv.cc.targetPrefix}cc'
|
||||||
|
export CXX='${pkgs.stdenv.cc}/bin/${pkgs.stdenv.cc.targetPrefix}c++'
|
||||||
$DRY_RUN_CMD ${lib.getExe config.programs.neovim.finalPackage} -c 'TSUpdateSync | q' --headless
|
$DRY_RUN_CMD ${lib.getExe config.programs.neovim.finalPackage} -c 'TSUpdateSync | q' --headless
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,10 +13,7 @@ in
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
enableVteIntegration = !config.programs.wezterm.enable;
|
enableVteIntegration = !config.programs.wezterm.enable;
|
||||||
|
|
||||||
autosuggestion = {
|
autosuggestion.enable = false;
|
||||||
enable = true;
|
|
||||||
strategy = [ "completion" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
syntaxHighlighting = {
|
syntaxHighlighting = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -24,21 +21,41 @@ in
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
# https://github.com/dracula/zsh-syntax-highlighting
|
# https://github.com/Aloxaf/fzf-tab
|
||||||
name = "dracula-zsh-syntax-highlighting";
|
name = "fzf-tab";
|
||||||
file = "zsh-syntax-highlighting.sh";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dracula";
|
owner = "Aloxaf";
|
||||||
repo = "zsh-syntax-highlighting";
|
repo = "fzf-tab";
|
||||||
rev = "09c89b657ad8a27ddfe1d6f2162e99e5cce0d5b3";
|
rev = "6aced3f35def61c5edf9d790e945e8bb4fe7b305";
|
||||||
hash = "sha256-JrSKx8qHGAF0DnSJiuKWvn6ItQHvWpJ5pKo4yNbrHno=";
|
hash = "sha256-EWMeslDgs/DWVaDdI9oAS46hfZtp4LHTRY8TclKTNK8=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
# https://github.com/zsh-users/zsh-autosuggestions
|
||||||
|
name = "zsh-autosuggestions";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zsh-users";
|
||||||
|
repo = "zsh-autosuggestions";
|
||||||
|
rev = "0e810e5afa27acbd074398eefbe28d13005dbc15";
|
||||||
|
hash = "sha256-85aw9OM2pQPsWklXjuNOzp9El1MsNb+cIiZQVHUzBnk=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
# https://github.com/hlissner/zsh-autopair
|
||||||
|
name = "zsh-autopair";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hlissner";
|
||||||
|
repo = "zsh-autopair";
|
||||||
|
rev = "449a7c3d095bc8f3d78cf37b9549f8bb4c383f3d";
|
||||||
|
hash = "sha256-3zvOgIi+q7+sTXrT+r/4v98qjeiEL4Wh64rxBYnwJvQ=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# https://github.com/trystan2k/zsh-tab-title
|
# https://github.com/trystan2k/zsh-tab-title
|
||||||
name = "zsh-tab-title";
|
name = "zsh-tab-title";
|
||||||
file = "zsh-tab-title.plugin.zsh";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "trystan2k";
|
owner = "trystan2k";
|
||||||
repo = "zsh-tab-title";
|
repo = "zsh-tab-title";
|
||||||
|
@ -50,7 +67,6 @@ in
|
||||||
{
|
{
|
||||||
# https://github.com/Freed-Wu/zsh-colorize-functions
|
# https://github.com/Freed-Wu/zsh-colorize-functions
|
||||||
name = "zsh-colorize-functions";
|
name = "zsh-colorize-functions";
|
||||||
file = "zsh-colorize-functions.plugin.zsh";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Freed-Wu";
|
owner = "Freed-Wu";
|
||||||
repo = "zsh-colorize-functions";
|
repo = "zsh-colorize-functions";
|
||||||
|
@ -62,7 +78,6 @@ in
|
||||||
{
|
{
|
||||||
# https://github.com/Freed-Wu/zsh-help
|
# https://github.com/Freed-Wu/zsh-help
|
||||||
name = "zsh-help";
|
name = "zsh-help";
|
||||||
file = "zsh-help.plugin.zsh";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Freed-Wu";
|
owner = "Freed-Wu";
|
||||||
repo = "zsh-help";
|
repo = "zsh-help";
|
||||||
|
@ -72,21 +87,20 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
# https://github.com/hlissner/zsh-autopair
|
# https://github.com/dracula/zsh-syntax-highlighting
|
||||||
name = "zsh-autopair";
|
name = "dracula-zsh-syntax-highlighting";
|
||||||
file = "zsh-autopair.plugin.zsh";
|
file = "zsh-syntax-highlighting.sh";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hlissner";
|
owner = "dracula";
|
||||||
repo = "zsh-autopair";
|
repo = "zsh-syntax-highlighting";
|
||||||
rev = "449a7c3d095bc8f3d78cf37b9549f8bb4c383f3d";
|
rev = "09c89b657ad8a27ddfe1d6f2162e99e5cce0d5b3";
|
||||||
hash = "sha256-3zvOgIi+q7+sTXrT+r/4v98qjeiEL4Wh64rxBYnwJvQ=";
|
hash = "sha256-JrSKx8qHGAF0DnSJiuKWvn6ItQHvWpJ5pKo4yNbrHno=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
] ++ optionals isDarwin [
|
] ++ optionals isDarwin [
|
||||||
{
|
{
|
||||||
# https://github.com/MichaelAquilina/zsh-auto-notify
|
# https://github.com/MichaelAquilina/zsh-auto-notify
|
||||||
name = "zsh-auto-notify";
|
name = "zsh-auto-notify";
|
||||||
file = "auto-notify.plugin.zsh";
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MichaelAquilina";
|
owner = "MichaelAquilina";
|
||||||
repo = "zsh-auto-notify";
|
repo = "zsh-auto-notify";
|
||||||
|
@ -123,6 +137,13 @@ in
|
||||||
bindkey '^[[1;3D' backward-word # Alt+Left
|
bindkey '^[[1;3D' backward-word # Alt+Left
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
|
zstyle ':completion:*:git-checkout:*' sort false
|
||||||
|
zstyle ':completion:*:descriptions' format '[%d]'
|
||||||
|
zstyle ':completion:*' menu no
|
||||||
|
zstyle ':fzf-tab:*' use-fzf-default-opts yes
|
||||||
|
|
||||||
|
ZSH_AUTOSUGGEST_STRATEGY=(completion)
|
||||||
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets cursor)
|
||||||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
../darwin/defaults.nix
|
../darwin/defaults.nix
|
||||||
../darwin/sudo.nix
|
../darwin/sudo.nix
|
||||||
|
|
||||||
../darwin/fish.nix
|
../darwin/zsh.nix
|
||||||
../darwin/attic.nix
|
../darwin/attic.nix
|
||||||
|
|
||||||
../darwin/mas.nix
|
../darwin/mas.nix
|
||||||
|
|
Loading…
Reference in a new issue