From b6131e086831f37985a23d9e2b5cdac71e57791d Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 20 Sep 2017 14:26:15 +0100 Subject: [PATCH] override vim-project-tags filenames for the built in languages --- vimrc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 46db29b..f0abeed 100644 --- a/vimrc +++ b/vimrc @@ -268,8 +268,6 @@ nnoremap p :echom SyntaxItem() " plugins stuff -" vim-project-tags -source ~/.vim/bundle/vim-elhiv/elhiv.vim " MUcomplete set completeopt+=menuone @@ -360,11 +358,16 @@ nnoremap o :BufExplorer nnoremap ut :UndotreeToggle " vim-project-tags -call project_tags#add_language('.phptags','php') -call project_tags#add_language('.jstags','js') -call project_tags#add_language('.vimtags','vim') -call project_tags#add_language('.css','css') -call project_tags#add_language('.scss','scss') +source ~/.vim/bundle/vim-elhiv/elhiv.vim +" override function so we can have custom tag names for built in languages +function! project_tags#add_built_in_language_support() + call project_tags#add_language('.jstags', 'js') + call project_tags#add_language('.vimtags', 'vim') + call project_tags#add_language('.phptags', 'php') +endfunction + +call project_tags#add_language('.csstags','css') +call project_tags#add_language('.scsstags','scss') " jsut some example text one two three four five Six "Seven"