Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
liubang committed Sep 8, 2018
1 parent 87dd35a commit b313b51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/tags/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ endif
let s:vim_tags = expand('~/.cache/tags')
let g:gutentags_cache_dir = s:vim_tags

" 检测 ~/.cache/tags 不存在就新建
if !isdirectory(s:vim_tags)
silent! call mkdir(s:vim_tags, 'p')
endif

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

Expand All @@ -30,10 +35,5 @@ let g:gutentags_ctags_extra_args += ['--output-format=e-ctags']
" 禁用 gutentags 自动加载 gtags 数据库的行为
let g:gutentags_auto_add_gtags_cscope = 0

" 检测 ~/.cache/tags 不存在就新建
if !isdirectory(s:vim_tags)
silent! call mkdir(s:vim_tags, 'p')
endif

nmap <Leader>mc :GutentagsUpdate<CR>
nmap <Leader>mg :GutentagsUpdate!<CR>
2 changes: 1 addition & 1 deletion init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" vim: et ts=2 sts=2 sw=2

scriptencoding utf-8
let g:lbvim_version = '0.5-dev'
let g:lbvim_version = '0.5'
let g:lbvim_isnvim = has('nvim')
let g:MAC = has('macunix')
let g:LINUX = has('unix') && !has('macunix') && !has('win32unix')
Expand Down

0 comments on commit b313b51

Please sign in to comment.