~gpanders/dotfiles

b625e2c3f699f31f4d38cb59778a5a30ab9d5ca0 — Greg Anders 2 years ago ca68f39
Move vim plugin configuration to runtimepath so they are executed
automatically
14 files changed, 27 insertions(+), 33 deletions(-)

R vim/.vim/{config/ack.vim => after/plugin/ack.vim}
R vim/.vim/{config/capslock.vim => after/plugin/capslock.vim}
R vim/.vim/{config/dispatch.vim => after/plugin/dispatch.vim}
R vim/.vim/{config/fugitive.vim => after/plugin/fugitive.vim}
A vim/.vim/after/plugin/fzf.vim
R vim/.vim/{config/gutentags.vim => after/plugin/gutentags.vim}
R vim/.vim/{config/jedi.vim => after/plugin/jedi.vim}
R vim/.vim/{config/lsp.vim => after/plugin/lsp.vim}
R vim/.vim/{config/neomake.vim => after/plugin/neomake.vim}
R vim/.vim/{config/python.vim => after/plugin/python.vim}
R vim/.vim/{config/sneak.vim => after/plugin/sneak.vim}
R vim/.vim/{config/vimtex.vim => after/plugin/vimtex.vim}
D vim/.vim/config/fzf.vim
M vim/.vimrc
R vim/.vim/config/ack.vim => vim/.vim/after/plugin/ack.vim +0 -0
R vim/.vim/config/capslock.vim => vim/.vim/after/plugin/capslock.vim +0 -0
R vim/.vim/config/dispatch.vim => vim/.vim/after/plugin/dispatch.vim +0 -0
R vim/.vim/config/fugitive.vim => vim/.vim/after/plugin/fugitive.vim +0 -0
A vim/.vim/after/plugin/fzf.vim => vim/.vim/after/plugin/fzf.vim +12 -0
@@ 0,0 1,12 @@
if exists('plugs') && has_key(plugs, 'fzf.vim')
  let g:fzf_tags_command = 'ctags -R'

  map <silent> <C-P> :Files<CR>

  " nnoremap <leader>t :Tags<CR>
  " nnoremap <leader>b :Buffers<CR>

  autocmd! FileType fzf
  autocmd FileType fzf set laststatus=0 noshowmode noruler
        \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
endif

R vim/.vim/config/gutentags.vim => vim/.vim/after/plugin/gutentags.vim +0 -0
R vim/.vim/config/jedi.vim => vim/.vim/after/plugin/jedi.vim +6 -4
@@ 1,4 1,6 @@
let g:jedi#goto_command = "gd"
let g:jedi#goto_assignments_command = ""
let g:jedi#usages_command = ""
let g:jedi#rename_command = "gr"
if exists('plugs') && has_key(plugs, 'jedi-vim')
  let g:jedi#goto_command = "gd"
  let g:jedi#goto_assignments_command = ""
  let g:jedi#usages_command = ""
  let g:jedi#rename_command = "gr"
endif

R vim/.vim/config/lsp.vim => vim/.vim/after/plugin/lsp.vim +9 -10
@@ 13,14 13,13 @@ if executable('cquery')
endif

" pyls
if executable('pyls')
  "" Disabled for now in favor of jedi-vim
  " au User lsp_setup call lsp#register_server({
  "       \ 'name': 'pyls',
  "       \ 'cmd': {server_info->['pyls']},
  "       \ 'whitelist': ['python'],
  "       \ })
" if executable('pyls')
"   au User lsp_setup call lsp#register_server({
"         \ 'name': 'pyls',
"         \ 'cmd': {server_info->['pyls']},
"         \ 'whitelist': ['python'],
"         \ })

  " au FileType python nnoremap <buffer> gd :LspDefinition<CR>
  " au FileType python setlocal completeopt+=preview
endif
"   au FileType python nnoremap <buffer> gd :LspDefinition<CR>
"   au FileType python setlocal completeopt+=preview
" endif

R vim/.vim/config/neomake.vim => vim/.vim/after/plugin/neomake.vim +0 -0
R vim/.vim/config/python.vim => vim/.vim/after/plugin/python.vim +0 -0
R vim/.vim/config/sneak.vim => vim/.vim/after/plugin/sneak.vim +0 -0
R vim/.vim/config/vimtex.vim => vim/.vim/after/plugin/vimtex.vim +0 -0
D vim/.vim/config/fzf.vim => vim/.vim/config/fzf.vim +0 -15
@@ 1,15 0,0 @@
if exists('plugs') && has_key(plugs, 'fzf.vim')
  let g:fzf_tags_command = 'ctags -R'

  map <silent> <C-P> :Files<CR>

  nnoremap <leader>t :Tags<CR>
  nnoremap <leader>b :Buffers<CR>

  function! s:fzf_statusline()
    set laststatus=0
    autocmd BufWinLeave <buffer> set laststatus=2
  endfunction

  autocmd! User FzfStatusLine call <SID>fzf_statusline()
endif

M vim/.vimrc => vim/.vimrc +0 -4
@@ 305,7 305,3 @@ augroup END
set exrc
set secure
" }}}

" Source plugin configuration files
" Do this last so that plugins can override default configuration
runtime! config/*.vim