Compare commits
2 Commits
f396e93591
...
17ef954d6d
| Author | SHA1 | Date | |
|---|---|---|---|
|
17ef954d6d
|
|||
|
df3f80d5fb
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -16,3 +16,6 @@
|
||||
[submodule "zsh/custom/plugins/zsh-completions"]
|
||||
path = zsh/custom/plugins/zsh-completions
|
||||
url = https://github.com/zsh-users/zsh-completions.git
|
||||
[submodule "zsh/custom/plugins/zsh-vi-mode"]
|
||||
path = zsh/custom/plugins/zsh-vi-mode
|
||||
url = https://github.com/jeffreytse/zsh-vi-mode
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
ohmyzsh
|
||||
custom
|
||||
fzf-git.sh
|
||||
|
||||
Submodule zsh/custom/plugins/zsh-autosuggestions updated: 0e810e5afa...85919cd1ff
1
zsh/custom/plugins/zsh-vi-mode
Submodule
1
zsh/custom/plugins/zsh-vi-mode
Submodule
Submodule zsh/custom/plugins/zsh-vi-mode added at 08bd1c0452
@@ -21,7 +21,7 @@ plugins=(
|
||||
zsh-autosuggestions
|
||||
# Disabled because the highlighting conflicts with autosuggestions
|
||||
# history-substring-search
|
||||
vi-mode
|
||||
zsh-vi-mode
|
||||
colored-man-pages
|
||||
command-not-found
|
||||
zsh-autopair
|
||||
@@ -37,8 +37,21 @@ HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=3
|
||||
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
|
||||
VI_MODE_SET_CURSOR=true
|
||||
# Enable system clipboard
|
||||
ZVM_SYSTEM_CLIPBOARD_ENABLED=true
|
||||
# Make p and P use the system clipboard, instead of CUTBUFFER,
|
||||
# without this you need gp and gP
|
||||
function zvm_after_lazy_keybindings() {
|
||||
bindkey -M vicmd 'p' zvm_paste_clipboard_after
|
||||
bindkey -M vicmd 'P' zvm_paste_clipboard_before
|
||||
bindkey -M visual 'p' zvm_visual_paste_clipboard
|
||||
bindkey -M visual 'P' zvm_visual_paste_clipboard
|
||||
}
|
||||
|
||||
# Fix autopair and zsh-vi-mode compatibility
|
||||
AUTOPAIR_INHIBIT_INIT=1
|
||||
zvm_after_init_commands+=('autopair-init')
|
||||
|
||||
# Might cause issues?
|
||||
KEYTIMEOUT=1
|
||||
|
||||
@@ -113,6 +126,7 @@ if (( $+commands[fd] )); then
|
||||
fi
|
||||
if (( $+commands[fzf] )); then
|
||||
source <(fzf --zsh)
|
||||
zvm_after_init_commands+=('source <(fzf --zsh)')
|
||||
|
||||
if (( $+commands[paru] )); then
|
||||
function pi {
|
||||
|
||||
Submodule zsh/ohmyzsh updated: 8c168e2662...8df5c1b18b
Reference in New Issue
Block a user