optimize: replaced omz to antidote

This commit is contained in:
lsoriano-mcm
2025-06-07 13:49:32 -05:00
parent c204eed76e
commit 6034a9797c
2 changed files with 15 additions and 32 deletions
+1
View File
@@ -12,6 +12,7 @@
termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font
termShell = "fish"; termShell = "fish";
shellAliases = { shellAliases = {
ls = "ls --color=auto";
update = '' update = ''
if [[ $(uname) == "Darwin" ]]; then if [[ $(uname) == "Darwin" ]]; then
sudo darwin-rebuild switch --flake ~/.config/nixos#macos sudo darwin-rebuild switch --flake ~/.config/nixos#macos
+14 -32
View File
@@ -10,48 +10,30 @@
programs.zsh.enable = true; programs.zsh.enable = true;
programs.zoxide.enable = true; programs.zoxide.enable = true;
programs.oh-my-posh.enable = false;
home.file.".config/oh-my-posh/config.omp.json" = {
source = ./custom/config.omp.json;
force = true;
};
programs.zsh = { programs.zsh = {
plugins = [ plugins = [
{
name = "vi-mode";
src = pkgs.zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}
{
name = "autosuggestion";
src = pkgs.zsh-autosuggestions;
file = "share/zsh-autosuggestions/zsh-autosuggestions.zsh";
}
]; ];
enableCompletion = true;
syntaxHighlighting.enable = true; enableCompletion = false;
syntaxHighlighting.enable = false;
shellAliases = terminal.shellAliases; shellAliases = terminal.shellAliases;
history.size = 10000; history.size = 10000;
oh-my-zsh = {
plugins = []; antidote = {
enable = true; enable = true;
theme = "robbyrussell"; plugins = [
extraConfig = '' "jeffreytse/zsh-vi-mode"
zstyle ':completion:*' completer _expand _complete _ignored _approximate _expand_alias "zdharma-continuum/fast-syntax-highlighting kind:defer"
zstyle ':autocomplete:*' default-context curcontext "zsh-users/zsh-autosuggestions kind:defer"
zstyle ':autocomplete:*' min-input 0 "zsh-users/zsh-history-substring-search kind:defer"
];
setopt HIST_FIND_NO_DUPS
# setopt autocd # cd without writing 'cd'
setopt globdots # show dotfiles in autocomplete list
'';
}; };
initContent = '' initContent = ''
# zsh-autocomplete # zsh-autocomplete
bindkey -M menuselect '^M' .accept-line # run code when selected completion # bindkey -M menuselect '^M' .accept-line # run code when selected completion
autoload -Uz compinit autoload -Uz compinit
if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then