|
|
|
@ -59,43 +59,28 @@ let g:vimtex_view_method = 'zathura'
|
|
|
|
|
let g:tex_flavor='latex'
|
|
|
|
|
let g:vimtex_quickfix_mode=0
|
|
|
|
|
|
|
|
|
|
" fzf integration
|
|
|
|
|
" fzf settings
|
|
|
|
|
set rtp+=~/.fzf
|
|
|
|
|
|
|
|
|
|
let g:fzf_preview_window = ['right:50%', 'ctrl-/']
|
|
|
|
|
let g:fzf_buffers_jump = 1
|
|
|
|
|
" Customize fzf colors to match your color scheme
|
|
|
|
|
" " - fzf#wrap translates this to a set of `--color` options
|
|
|
|
|
let g:fzf_colors =
|
|
|
|
|
\ { 'fg': ['fg', 'Normal'],
|
|
|
|
|
\ 'bg': ['bg', 'Normal'],
|
|
|
|
|
\ 'hl': ['fg', 'Comment'],
|
|
|
|
|
\ 'fg+': ['fg', 'MarchParen', 'CursorLine', 'CursorColumn', 'Normal'],
|
|
|
|
|
\ 'bg+': ['bg', 'MatchParen', 'CursorLine', 'CursorColumn'],
|
|
|
|
|
\ 'hl+': ['fg', 'Constant'],
|
|
|
|
|
\ 'info': ['fg', 'PreProc'],
|
|
|
|
|
\ 'border': ['fg', 'Ignore'],
|
|
|
|
|
\ 'prompt': ['fg', 'Conditional'],
|
|
|
|
|
\ 'pointer': ['fg', 'Exception'],
|
|
|
|
|
\ 'marker': ['fg', 'Keyword'],
|
|
|
|
|
\ 'spinner': ['fg', 'Label'],
|
|
|
|
|
\ 'gutter' : ['bg', 'Normal'],
|
|
|
|
|
\ 'header': ['fg', 'Comment']}
|
|
|
|
|
" let g:fzf_preview_window = ['right:50%', 'ctrl-/']
|
|
|
|
|
" let g:fzf_buffers_jump = 1
|
|
|
|
|
" " Customize fzf colors to match your color scheme
|
|
|
|
|
" " " - fzf#wrap translates this to a set of `--color` options
|
|
|
|
|
|
|
|
|
|
" open in floating tmux pane if available
|
|
|
|
|
" TMUX support
|
|
|
|
|
if exists('$TMUX')
|
|
|
|
|
let g:fzf_layout = { 'tmux': '-p60%,70%' }
|
|
|
|
|
else
|
|
|
|
|
let g:fzf_layout = { 'window': { 'width': 0.6, 'height': 0.7} }
|
|
|
|
|
endif
|
|
|
|
|
" fzf functions and keybinds
|
|
|
|
|
command! -bang -nargs=? -complete=dir Find
|
|
|
|
|
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview({'options': ['--layout=reverse', '--info=inline']}), <bang>0)
|
|
|
|
|
" " fzf functions and keybinds
|
|
|
|
|
" command! -bang -nargs=? -complete=dir Find
|
|
|
|
|
" \ call fzf#vim#files(<q-args>, fzf#vim#with_preview({'options': ['--layout=reverse', '--info=inline']}), <bang>0)
|
|
|
|
|
|
|
|
|
|
nnoremap <silent> <leader>f :Find<CR>
|
|
|
|
|
nnoremap <silent> <leader>h :Find $HOME<CR>
|
|
|
|
|
nnoremap <silent> <leader>g :GFiles<CR>
|
|
|
|
|
nnoremap <silent> <leader>s :GFiles?<CR>
|
|
|
|
|
nnoremap <silent> <leader>f :FZF<CR>
|
|
|
|
|
nnoremap <silent> <leader>F :FZF $HOME<CR>
|
|
|
|
|
" nnoremap <silent> <leader>g :GFiles<CR>
|
|
|
|
|
" nnoremap <silent> <leader>s :GFiles?<CR>
|
|
|
|
|
|
|
|
|
|
" tweaking timeout to quit instatnly via esc
|
|
|
|
|
set ttimeout
|
|
|
|
|