소스 검색

Mainly some tuning for fzf in nvim

Kevin Heinicke 5 년 전
부모
커밋
b2133479c7
3개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      nvimrc
  2. 2 0
      zsh_local_e5
  3. 1 0
      zshrc

+ 5 - 1
nvimrc

@@ -27,7 +27,7 @@ Plug 'ap/vim-css-color'
 Plug 'mattn/emmet-vim'
 Plug 'tpope/vim-commentary'
 Plug 'pangloss/vim-javascript', { 'for': 'javacript' }
-Plug 'easymotion/vim-easymotion'
+" Plug 'easymotion/vim-easymotion'
 Plug 'tpope/vim-unimpaired'
 Plug 'tpope/vim-surround'
 Plug 'christoomey/vim-tmux-navigator'
@@ -82,6 +82,10 @@ map <C-m> :TagbarToggle<CR>
 " toggle background with ,i
 nnoremap <leader>i :let &background = (&background == "dark" ? "light" : "dark")<CR>
 
+" Open fzf file list
+nnoremap <silent> <expr> <Leader><Leader> (expand('%') =~ 'NERD_tree' ? "\<c-w>\<c-w>" : '').":Files\<cr>"
+nnoremap <silent> <Leader>b  :Buffers<CR>
+
 " :w for :W
 command W w
 command Wq wq

+ 2 - 0
zsh_local_e5

@@ -7,6 +7,8 @@ export KRB5CCNAME=$HOME/.krb5cc
 export LIBCLANG_PATH=/cvmfs/sft.cern.ch/lcg/releases/clang/8.0.0-ed577/x86_64-centos7/lib/libclang.so
 export CLANG_HEADER=/cvmfs/sft.cern.ch/lcg/releases/clang/8.0.0-ed577/x86_64-centos7/lib/clang/8.0.0/include/
 export D=/ceph/users/kheinicke/b2oc/dsk-run2
+export B=/ceph/users/kheinicke/Urania/PhysFit/B2DXFitters/
+export BC=/ceph/users/kheinicke/Urania/PhysFit/B2DXFitters/data/Bs2DsK_Run2CPV/Bs2DsPi/Toys/
 
 alias upy="/ceph/users/kheinicke/Urania/build.x86_64-centos7-gcc9-opt/run python"
 alias set_conda="source /usr/scripts/set_conda.sh && source ~/.set_conda_local"

+ 1 - 0
zshrc

@@ -12,6 +12,7 @@ zplug "zsh-users/zsh-history-substring-search", defer:3
 zplug "junegunn/fzf", use:"shell/*.zsh"
 zplug "modules/git", from:prezto
 zplug "modules/completion", from:prezto
+zplug "esc/conda-zsh-completion"
 
 # Install plugins if there are plugins that have not been installed
 if ! zplug check --verbose; then