|
|
@@ -14,6 +14,12 @@ if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
|
|
|
setopt COMBINING_CHARS
|
|
|
fi
|
|
|
|
|
|
+# Use `nvim` as editor, preferring current instance if nested
|
|
|
+export EDITOR="${DOTFILES_DIR}/.scripts/nvim_editor.zsh"
|
|
|
+
|
|
|
+# Fixes plugin keymap conflicts
|
|
|
+export ZVM_INIT_MODE=sourcing
|
|
|
+
|
|
|
################################################################################
|
|
|
# History
|
|
|
################################################################################
|
|
|
@@ -135,11 +141,28 @@ if command -v lazydocker &>/dev/null; then;
|
|
|
fi;
|
|
|
|
|
|
################################################################################
|
|
|
-# Keybinds
|
|
|
+# From github.com/zsh-users:
|
|
|
+# * zsh-autosuggestions
|
|
|
+# * zsh-syntax-highlighting
|
|
|
+# Both can be installed through Homebrew.
|
|
|
################################################################################
|
|
|
+if command -v brew >> /dev/null; then
|
|
|
+ source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
+ source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
+ source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
|
|
+fi
|
|
|
|
|
|
-# vi mode
|
|
|
-bindkey -v
|
|
|
+################################################################################
|
|
|
+# fzf
|
|
|
+################################################################################
|
|
|
+
|
|
|
+if command -v fzf >> /dev/null; then
|
|
|
+ eval "$(fzf --zsh)"
|
|
|
+fi
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# Keybinds
|
|
|
+################################################################################
|
|
|
|
|
|
# Ctrl+Y copies buffer to clipboard
|
|
|
cmd_to_clip () { pbcopy <<< $BUFFER }
|
|
|
@@ -166,22 +189,3 @@ copy_dir_llm_style () {
|
|
|
}
|
|
|
zle -N copy_dir_llm_style
|
|
|
bindkey '^G' copy_dir_llm_style
|
|
|
-
|
|
|
-################################################################################
|
|
|
-# fzf
|
|
|
-################################################################################
|
|
|
-
|
|
|
-if command -v fzf >> /dev/null; then
|
|
|
- eval "$(fzf --zsh)"
|
|
|
-fi
|
|
|
-
|
|
|
-################################################################################
|
|
|
-# From github.com/zsh-users:
|
|
|
-# * zsh-autosuggestions
|
|
|
-# * zsh-syntax-highlighting
|
|
|
-# Both can be installed through Homebrew.
|
|
|
-################################################################################
|
|
|
-if command -v brew >> /dev/null; then
|
|
|
- source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
- source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
-fi
|