Skip to content

Commit

Permalink
Merge pull request #14 from Fmajor/master
Browse files Browse the repository at this point in the history
add new config "CtagsOptions"
  • Loading branch information
nicolashainaux authored Nov 5, 2017
2 parents b20555b + 6d45676 commit a630166
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ module.exports =
type: 'string'
description: 'Here you can specify a path to a binary to use for ctags creation instead of the one shipped with symbols-tree-nav. For instance, Linux users may want to use the binary available for their distribution (exuberant or universal, usually it is /usr/bin/ctags). Caution, if the path you specify is wrong, symbols-tree-nav will not work.'
default: 'default'
zzCtagsOptions:
title: 'CtagsOptions'
type: 'string'
description: 'Here you can specify the ctags options'
default: ''


symbolsTreeNav: null
Expand Down
3 changes: 3 additions & 0 deletions lib/tag-generator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ module.exports =
command = path.resolve(__dirname, '..', 'vendor', "universal-ctags-#{process.platform}")
else
command = path.resolve(atom.config.get('symbols-tree-nav.zzAlternativeCtagsBinary'))
customArgs = atom.config.get('symbols-tree-nav.zzCtagsOptions')
defaultCtagsFile = require.resolve('./.ctags')
args = ["--options=#{defaultCtagsFile}", '--fields=KsS']
if customArgs
args.push(customArgs)

if atom.config.get('symbols-view.useEditorGrammarAsCtagsLanguage')
if language = @getLanguage()
Expand Down

0 comments on commit a630166

Please sign in to comment.