Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liubang committed Sep 8, 2018
1 parent 2ab77a5 commit 87dd35a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 5 additions & 3 deletions components/tags/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ set tags=./.tags;,.tags
" gutentags 搜索工程目录的标志,碰到这些文件/目录名就停止向上一级目录递归
let g:gutentags_project_root = ['.root', '.svn', '.git', '.hg', '.project', '.tags']

" 所生成的数据文件的名称
let g:gutentags_ctags_tagfile = '.tags'

" 同时开启 ctags 和 gtags 支持:
let g:gutentags_modules = []
if executable('ctags')
Expand All @@ -19,6 +16,9 @@ endif
let s:vim_tags = expand('~/.cache/tags')
let g:gutentags_cache_dir = s:vim_tags

" 所生成的数据文件的名称
let g:gutentags_ctags_tagfile = '.tags'

" 配置 ctags 的参数
let g:gutentags_ctags_extra_args = ['--fields=+niazS', '--extra=+q']
let g:gutentags_ctags_extra_args += ['--c++-kinds=+px']
Expand All @@ -35,3 +35,5 @@ if !isdirectory(s:vim_tags)
silent! call mkdir(s:vim_tags, 'p')
endif

nmap <Leader>mc :GutentagsUpdate<CR>
nmap <Leader>mg :GutentagsUpdate!<CR>
5 changes: 0 additions & 5 deletions settings.json

This file was deleted.

0 comments on commit 87dd35a

Please sign in to comment.