move custom tagbar configs to own file

Sun, 24 May 2020 02:55:32 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 24 May 2020 02:55:32 -0500
changeset 868
b3beb2c34536
parent 867
118c469a1c85
child 869
9b6eec375e56

move custom tagbar configs to own file

.vim/plugin/tagbar-types.vim file | annotate | diff | comparison | revisions
.vimrc file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/.vim/plugin/tagbar-types.vim
@@ -0,0 +1,37 @@
+" adapted from https://gist.github.com/jbolila/7598018
+let g:tagbar_type_perl = {
+    \ 'ctagstype'   : 'Perl',
+    \ 'kinds' : [
+        \ 'p:packages:1:0',
+        \ 'u:uses:1:0',
+        \ 'r:requires:1:0',
+        \ 'e:extends',
+        \ 'w:roles',
+        \ 'o:ours:1:0',
+        \ 'c:constants:1:0',
+        \ 'f:formats:1:0',
+        \ 'a:attributes',
+        \ 'm:methods',
+        \ 's:subroutines',
+        \ 'x:around',
+        \ 'l:aliases',
+        \ 'd:pod:1:0',
+    \ ],
+    \ 'deffile' : g:myvim . '/ctags/perl.cnf'
+\ }
+
+let g:tagbar_type_elixir = {
+  \ 'ctagstype' : 'Elixir',
+  \ 'kinds' : [
+    \ 'm:modules:1:0',
+    \ 'r:records',
+    \ 'f:functions',
+    \ 'a:macros',
+    \ 'o:operators',
+    \ 'p:protocols',
+    \ 'i:implementations',
+    \ 'd:delegates',
+    \ 'c:callbacks',
+    \ 'e:exceptions',
+  \ ],
+\ }
--- a/.vimrc
+++ b/.vimrc
@@ -396,43 +396,7 @@ let g:tagbar_autofocus = 1
 let g:tagbar_compact = 1
 let g:tagbar_width = 30
 
-" adapted from https://gist.github.com/jbolila/7598018
-let g:tagbar_type_perl = {
-    \ 'ctagstype'   : 'Perl',
-    \ 'kinds' : [
-        \ 'p:packages:1:0',
-        \ 'u:uses:1:0',
-        \ 'r:requires:1:0',
-        \ 'e:extends',
-        \ 'w:roles',
-        \ 'o:ours:1:0',
-        \ 'c:constants:1:0',
-        \ 'f:formats:1:0',
-        \ 'a:attributes',
-        \ 'm:methods',
-        \ 's:subroutines',
-        \ 'x:around',
-        \ 'l:aliases',
-        \ 'd:pod:1:0',
-    \ ],
-    \ 'deffile' : g:myvim . '/ctags/perl.cnf'
-\ }
-
-let g:tagbar_type_elixir = {
-  \ 'ctagstype' : 'Elixir',
-  \ 'kinds' : [
-    \ 'm:modules:1:0',
-    \ 'r:records',
-    \ 'f:functions',
-    \ 'a:macros',
-    \ 'o:operators',
-    \ 'p:protocols',
-    \ 'i:implementations',
-    \ 'd:delegates',
-    \ 'c:callbacks',
-    \ 'e:exceptions',
-  \ ],
-\ }
+" tagbar languages in plugin/tagbar-types.vim
 
 ">> Airline
 let g:airline#extensions#whitespace#enabled = 0

mercurial