From 7b243e00caf44f9ffd6723db3b78e53b21886508 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 15 Apr 2022 14:56:48 -0400 Subject: [PATCH] Configure everything for gutentags to function --- vim/config/plugins.vim | 11 ++--------- vim/config/plugins/vim-gutentags.vim | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 vim/config/plugins/vim-gutentags.vim diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 0131ffa..bd05691 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -14,12 +14,8 @@ scriptencoding utf-8 "INITIALIZE PLUGINS: {{{ "create missing plugin config files and directories - if exists('*mkdir') && !isdirectory(glob("~/.vim/tags_by_filetype")) - call mkdir(glob("~/.vim/tags_by_filetype"),'p') - endif - - if !filereadable(glob("~/.vim/tags")) - new|silent e ~/.vim/tags|silent w|q + if exists('*mkdir') && !isdirectory(glob("~/.vim/gutentags")) + call mkdir(glob("~/.vim/gutentags"),'p') endif if !filereadable(glob("~/.vim/filetypes.vim")) @@ -28,9 +24,6 @@ scriptencoding utf-8 "load plugins in vim/bundle/ and vim/bundle.user/ execute pathogen#infect('bundle/{}', 'bundle.user/{}') - - "set the locations for gutentags, tagbar and other plugins to look for tag files - set tags=./.tags;,~/.vim/tags "}}} runtime! config/plugins/* diff --git a/vim/config/plugins/vim-gutentags.vim b/vim/config/plugins/vim-gutentags.vim new file mode 100644 index 0000000..55bf478 --- /dev/null +++ b/vim/config/plugins/vim-gutentags.vim @@ -0,0 +1 @@ +let g:gutentags_cache_dir = '~/.vim/gutentags'