override vim-project-tags filenames for the built in languages

This commit is contained in:
ManjaroOne666 2017-09-20 14:26:15 +01:00
parent 1d10b43b6e
commit b6131e0868
1 changed files with 10 additions and 7 deletions

13
vimrc
View File

@ -268,8 +268,6 @@ nnoremap <leader>p :echom SyntaxItem()<CR>
" plugins stuff
" vim-project-tags
source ~/.vim/bundle/vim-elhiv/elhiv.vim
" MUcomplete
set completeopt+=menuone
@ -360,11 +358,16 @@ nnoremap <leader>o :BufExplorer<CR>
nnoremap <leader>ut :UndotreeToggle<cr>
" vim-project-tags
call project_tags#add_language('.phptags','php')
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('.css','css')
call project_tags#add_language('.scss','scss')
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"