From fafb2337a1c3cc366487587d9260ae439f433495 Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 1 Feb 2021 14:13:22 +0100 Subject: [PATCH] vim: update gutentags/ctrlp configuration --- vim/plugins_config.vim | 21 ++++++++++++++++----- vim/plugs.vim | 2 ++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/vim/plugins_config.vim b/vim/plugins_config.vim index a5be7e8..d48e57c 100644 --- a/vim/plugins_config.vim +++ b/vim/plugins_config.vim @@ -126,9 +126,20 @@ let g:indent_guides_start_level = 2 let g:indent_guides_guide_size = 1 -let g:ctrlp_custom_ignore = { - \ 'dir': '\v(target|build|dist|.venv)$', - \ 'file': '\v\.(exe|so|dll)$', - \ 'link': 'some_bad_symbolic_links', - \ } +" let g:ctrlp_custom_ignore = { +" \ 'dir': '\v(target|build|dist|.venv)$', +" \ 'file': '\v\.(exe|so|dll)$', +" \ 'link': 'some_bad_symbolic_links', +" \ } let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] + +"" Gutentags" +let g:gutentags_cache_dir = expand('~/.vim/ctags_cache/') + +let g:gutentags_file_list_command = { + \ 'markers': { + \ '.git': 'git ls-files', + \ '.hg': 'hg files', + \ }, + \ } +let g:gutentags_ctags_exclude = ['build', 'dist', 'css', 'json', 'yaml'] diff --git a/vim/plugs.vim b/vim/plugs.vim index ae6a610..9881184 100644 --- a/vim/plugs.vim +++ b/vim/plugs.vim @@ -15,6 +15,8 @@ Plug 'https://github.com/morhetz/gruvbox' Plug 'https://github.com/dense-analysis/ale' " Open files/recent files/tags quickly Plug 'https://github.com/ctrlpvim/ctrlp.vim' +" Ctrlp requires gutentags +Plug 'https://github.com/ludovicchabant/vim-gutentags.git' " Git Plug 'https://github.com/tpope/vim-fugitive' " Comment shit easily