diff --git a/vim/init.vim b/vim/init.vim index effcfc6..03be72a 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -46,13 +46,14 @@ filetype plugin indent on call plug#begin('~/.config/vim-plugins') Plug 'godlygeek/tabular' -Plug 'ctrlpvim/ctrlp.vim' Plug 'tpope/vim-fugitive' Plug 'scrooloose/syntastic' Plug 'edkolev/tmuxline.vim' Plug 'itchyny/lightline.vim' Plug 'brendonrapp/smyck-vim' Plug 'bitc/vim-bad-whitespace' ++Plug '/usr/local/opt/fzf' ++Plug 'junegunn/fzf.vim' call plug#end() syntax on diff --git a/zsh/zshrc b/zsh/zshrc index 009224f..61123eb 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -14,6 +14,10 @@ alias ll='ls -lh' source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme - [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +FZF_DEFAULT_COMMAND='git ls-files --cached --others --exclude-standard | fd' +FZF_DEFAULT_OPTS="-e --height 40% --preview='bat --color=always --tabs=2 --style=plain {}'" + [ -e ~/.zshrc.local ] && source ~/.zshrc.local \ No newline at end of file