aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYasuhiro Matsumoto2018-04-03 15:02:41 +0900
committerYasuhiro Matsumoto2018-04-03 15:02:41 +0900
commit3acd9e8cce83fffbaf0cc427bf9a3e721d35d07d (patch)
tree212fead5b651d822a440b99a630217cfcacc1358
parent5c067a3bf121545dfbfdebf40011474c13a3fe7c (diff)
downloadctrlp.vim-fix-421.tar.gz

add ctrlpbuffertagoptions for universal ctags.

fix-421

closes #421

-rw-r--r--autoload/ctrlp/buffertag.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ctrlp/buffertag.vim b/autoload/ctrlp/buffertag.vim
index f36a5cf..b83a801 100644
--- a/autoload/ctrlp/buffertag.vim
+++ b/autoload/ctrlp/buffertag.vim
@@ -139,12 +139,12 @@ fu! s:exectags(cmd)
endf
fu! s:exectagsonfile(fname, ftype)
- let [ags, ft] = ['-f - --sort=no --excmd=pattern --fields=nKs --extra= --file-scope=yes ', a:ftype]
+ let [ags, ft] = [get(g:, 'ctrlp_buffertag_options', '-f - --sort=no --excmd=pattern --fields=nKs --extra= --file-scope=yes'), a:ftype]
if type(s:types[ft]) == 1
- let ags .= s:types[ft]
+ let ags .= ' ' . s:types[ft]
let bin = s:bin
elsei type(s:types[ft]) == 4
- let ags = s:types[ft]['args']
+ let ags = ' ' . s:types[ft]['args']
let bin = expand(s:types[ft]['bin'], 1)
en
if empty(bin) | retu '' | en