mirror of
https://github.com/Feliix42/dotfiles.git
synced 2024-11-21 22:06:29 +00:00
Fix fzf plugin and set commands
This commit is contained in:
parent
295ef2315d
commit
4094698cbe
1 changed files with 15 additions and 4 deletions
19
tycho/.vimrc
19
tycho/.vimrc
|
@ -18,21 +18,24 @@ Plug 'morhetz/gruvbox'
|
|||
" Any valid git URL is allowed
|
||||
Plug 'https://github.com/scrooloose/nerdcommenter.git'
|
||||
|
||||
" On-demand loading
|
||||
" On-demand loading for languages
|
||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
||||
Plug 'keith/swift.vim', { 'for': 'swift' }
|
||||
|
||||
Plug 'vim-syntastic/syntastic'
|
||||
Plug 'cespare/vim-toml', { 'for': 'toml' }
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'keith/swift.vim', { 'for': 'swift' }
|
||||
Plug 'justinmk/vim-sneak'
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
" Plug 'LnL7/vim-nix'
|
||||
Plug 'preservim/nerdtree'
|
||||
|
||||
" Plugin outside ~/.vim/plugged with post-update hook
|
||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
" ale language server client
|
||||
Plug 'dense-analysis/ale'
|
||||
|
@ -40,6 +43,10 @@ Plug 'dense-analysis/ale'
|
|||
" Initialize plugin system
|
||||
call plug#end()
|
||||
|
||||
" open fzf files in new tab instead of new buffer
|
||||
command! -bang -nargs=? -complete=dir Files
|
||||
\ call fzf#vim#files(<q-args>, {'sink': 'tabedit', 'options': ['--info=inline', '--preview', '~/.vim/plugged/fzf.vim/bin/preview.sh {}']}, <bang>0)
|
||||
|
||||
set laststatus=2
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
@ -67,6 +74,7 @@ au BufRead,BufNewFile *.ohuao setfiletype json
|
|||
" nnoremap <C-H> <C-W><C-H><C-W>\|
|
||||
map <C-H> :tabp<Enter>
|
||||
map <C-L> :tabn<Enter>
|
||||
map <leader>f :Files<Enter>
|
||||
|
||||
" fix auto-completion
|
||||
set wildmenu " show a completion menu
|
||||
|
@ -75,6 +83,9 @@ set wildignore=*.o,*~,*.pyc,*.aux,*.bbl,*.blg,*-blx.bib,*.log,*.out,*.run.xml,
|
|||
\*.toc,*.nav,*.snm " ignore auxiliary files
|
||||
" set completeopt-=preview
|
||||
|
||||
" automatically reload files changed on disk but not in buffer
|
||||
set autoread
|
||||
|
||||
" tex configuration
|
||||
let g:tex_flavor='latex'
|
||||
" Optics
|
||||
|
|
Loading…
Reference in a new issue