]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Add universal ctags config
authorBen Beltran <redacted>
Tue, 18 Feb 2020 22:43:15 +0000 (23:43 +0100)
committerBen Beltran <redacted>
Tue, 18 Feb 2020 22:43:15 +0000 (23:43 +0100)
ctags.d/defaults.ctags [new file with mode: 0644]
ctags.d/javascript.ctags [new file with mode: 0644]
ctags.d/svelte.ctags [new file with mode: 0644]
install_dotfiles

diff --git a/ctags.d/defaults.ctags b/ctags.d/defaults.ctags
new file mode 100644 (file)
index 0000000..0d76d48
--- /dev/null
@@ -0,0 +1,3 @@
+-R
+--exclude=node_modules
+--exclude=README.md
diff --git a/ctags.d/javascript.ctags b/ctags.d/javascript.ctags
new file mode 100644 (file)
index 0000000..26e36c8
--- /dev/null
@@ -0,0 +1,2 @@
+--exclude=package*.json
+--exclude=dist
diff --git a/ctags.d/svelte.ctags b/ctags.d/svelte.ctags
new file mode 100644 (file)
index 0000000..13198ac
--- /dev/null
@@ -0,0 +1,9 @@
+--extras=+g
+--langdef=csssimple
+--regex-csssimple=/^[ \t]*([A-Za-z]*)\.([A-Za-z0-9_]+[A-Za-z0-9_-]+)/\2/c,class,classes/
+--langdef=svelte
+--map-svelte=.svelte
+--_tabledef-svelte=svelte
+--_mtable-regex-svelte=svelte/(^<script>).*(^<\/script>)//{_guest=JavaScript,1end,2start}
+--_mtable-regex-svelte=svelte/.*(^<style>).*(^<\/style>)//{_guest=csssimple,1end,2start}
+--exclude=.cache
index 55e8e279dc4e5b4e60f0824f71e7c0358c1c3d0f..9b0f93b9a45057ef5dd724c2d8c7b9602e948376 100755 (executable)
@@ -25,5 +25,8 @@ ln -s .dotfiles/nethackrc ~/.nethackrc
 # Git
 ln -s .dotfiles/gitconfig ~/.gitconfig
 
 # Git
 ln -s .dotfiles/gitconfig ~/.gitconfig
 
+# Ctags
+ln -s .dotfiles/ctags.d ~/.ctags.d
+
 echo "Setting up terminfo"
 tic xterm-256color-italic.terminfo
 echo "Setting up terminfo"
 tic xterm-256color-italic.terminfo