Skip to content

Commit

Permalink
Setup ctags global config
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Aug 25, 2015
1 parent 048d87b commit 8c1b5ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Basic options
--recurse=yes
--tag-relative=yes
--exclude=.git

# Go
--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ vimfiles=$dotfiles/vimfiles
tmux_conf=$dotfiles/tmux.conf
gitignore=$dotfiles/gitignore
bin=$dotfiles/bin
ctags=$dotfiles/ctags

[[ ! -e $HOME/.bash_profile ]] && ln -s $bash_profile $HOME/.bash_profile \
|| echo ".bash_profile already exists..."
Expand All @@ -33,4 +34,7 @@ bin=$dotfiles/bin
[[ ! -e $HOME/.gitconfig ]] && ruby -rerb -e "File.open('../.gitconfig', 'w') { |file| file.write(ERB.new(File.read('gitconfig.erb')).result) }" \
|| echo "gitconfig already exists..."

[[ ! -e $HOME/ctags ]] && ln -s $ctags $HOME/.ctags \
|| echo "ctags already exists..."

echo "Done"

0 comments on commit 8c1b5ff

Please sign in to comment.