jsfaint / gen_tags.vim

Async plugin for vim and neovim to ease the use of ctags/gtags
https://vim.sourceforge.io/scripts/script.php?script_id=5499
MIT License
312 stars 42 forks source link

add g:gen_tags#scm_list for modify scm_list #62

Closed fcying closed 6 years ago

fcying commented 6 years ago

the default scm_list is not enough

jsfaint commented 6 years ago

I'm a little curious which scm do you use? 😄

fcying commented 6 years ago

I have some big git directories, if gentag directly, it will takes a lot of time and gen a lot of unused content, so I mk a dir .root for some alone project in it.

jsfaint commented 6 years ago

@fcying Sorry, I think it's a little over to add a new option for this requirement. You can just add a directory named as .git to achieve your requirement.

fcying commented 6 years ago

Because the compile script will search the scm directory, if use the existing one, I need to add .svn in the git directory, add .git in the svn directory... it is easy to get confused, so I added a custom directory.

jsfaint commented 6 years ago

I understand your concern. Maybe we should just make it as standard behavior but not add a new option.

I prefer to just extend the l:scm.

- let l:scm_list = ['.git', '.hg', '.svn']
+ let l:scm_list = ['.root', '.git', '.hg', '.svn']
fcying commented 6 years ago

I added an option just for not modify the original scm_list, then I can add .root in my vimrc.

I modify it in l:scm_list now.

jsfaint commented 6 years ago

Merged. Thanks for the PR~