Added ctags dotfile

Currently has options for markdown, go, and neosnippet files, as well as
some configuration options.
This commit is contained in:
Alexander Schmidt 2016-12-03 02:03:02 -06:00
parent 48ad0d8371
commit 3fd3c8f90d
1 changed files with 25 additions and 0 deletions

25
.ctags Normal file
View File

@ -0,0 +1,25 @@
--recurse=yes
--tag-relative=yes
--totals=yes
--extra=+f
--exclude=.git
--exclude=__pycache__
--langdef=markdown
--langmap=markdown:.md.mdown.mkdown.markdown
--regex-markdown=/^# (.*)(#)?/\1/1,header1/
--regex-markdown=/^#{2} (.*)(#{2})?/\1/2,header2/
--regex-markdown=/^#{3} (.*)(#{3})?/\1/3,header3/
--regex-markdown=/^#{4} (.*)(#{4})?/\1/4,header4/
--regex-markdown=/^#{5} (.*)(#{5})?/\1/5,header5/
--regex-markdown=/^#{6} (.*)(#{6})?/\1/6,header6/
--regex-markdown=/^#{7} (.*)(#{7})?/\1/7,header7/
--langdef=go
--langmap=go:.go
--regex-go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
--regex-go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/
--langdef=neosnippet
--langmap=neosnippet:.snip
--regex-neosnippet=/^snippet\s+(\S+).*/\1/s,snippet/