Skip to content

Commit f22c901

Browse files
committed
🚧 zsh: marlonrichert/zsh-autocomplete
1 parent c53e0dc commit f22c901

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.config/zsh/.zsh_plugins.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
zdharma-continuum/fast-syntax-highlighting kind:defer
2+
marlonrichert/zsh-autocomplete kind:defer
23
zsh-users/zsh-autosuggestions kind:defer
34
zsh-users/zsh-completions kind:defer
45
mattmc3/zman kind:defer

.config/zsh/.zshrc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Fig pre block. Keep at the top of this file.
2-
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
2+
# [[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
33

44
if [[ ! -f $XDG_DATA_HOME/antidote/antidote.zsh ]]; then
55
print -P "%F{33} %F{220}Installing %F{33}antidote%F{220} Initiative Plugin Manager (%F{33}mattmc3/antidote%F{220})…%f"
@@ -59,8 +59,11 @@ _bindkeys () {
5959
bindkey '^p' history-beginning-search-backward
6060
bindkey '^n' history-beginning-search-forward
6161
bindkey '^x^d' kill-word
62-
# ^M under csi-u
62+
bindkey '^x^f' zce
63+
# ^m
6364
bindkey '^[[109;5u' autosuggest-execute
65+
# ^i
66+
bindkey '^[[105;5u' menu-select
6467

6568
bindkey '^[ds' fzf-select-docker-widget
6669
bindkey '^[dc' fzf-docker-remove-containers
@@ -109,6 +112,7 @@ setopt correct
109112
autoload run-help
110113

111114
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
115+
zstyle ':completion:*' list-colors ''
112116

113117
if [[ -f $ZDOTDIR/.zshrc.local ]]; then
114118
source $ZDOTDIR/.zshrc.local
@@ -131,6 +135,15 @@ if (( $+commands[asdf] )); then
131135
fi
132136

133137
source $XDG_CONFIG_HOME/broot/launcher/bash/br
134-
135138
# Fig post block. Keep at the bottom of this file.
136-
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
139+
# [[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
140+
141+
autoload -Uz compinit
142+
compinit
143+
144+
# avoid freezing
145+
# marlonrichert/zsh-autocomplete or zsh-users/zsh-autosuggestions
146+
# maybe related to https://github.com/zsh-users/zsh-autosuggestions/issues/751
147+
ZSH_AUTOSUGGEST_IGNORE_WIDGETS=(
148+
$ZSH_AUTOSUGGEST_IGNORE_WIDGETS
149+
)

0 commit comments

Comments
 (0)