From 751710350192c629f1e667132f5a0f2e56fc4d6c Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 20 Oct 2022 10:31:26 +0200 Subject: [PATCH] Enable reStructuredText ctags support --- home/files/ctags | 2 +- home/programs/neovim/plugins/tagbar.vim | 23 ++++++++--------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/home/files/ctags b/home/files/ctags index 510698f..e861a38 100644 --- a/home/files/ctags +++ b/home/files/ctags @@ -68,7 +68,7 @@ --languages=+apache # --languages=+ruby --languages=+python -# --languages=+reStructuredText +--languages=+reStructuredText --languages=+Markdown --languages=+SQL --languages=+snippets diff --git a/home/programs/neovim/plugins/tagbar.vim b/home/programs/neovim/plugins/tagbar.vim index 3e2b579..262ad64 100644 --- a/home/programs/neovim/plugins/tagbar.vim +++ b/home/programs/neovim/plugins/tagbar.vim @@ -82,21 +82,14 @@ let g:tagbar_type_xml = { \ 'sort' : 0, \ } -" " Show outline of rst files -" let g:tagbar_type_rst = { -" \ 'ctagstype': 'rst', -" \ 'ctagsbin' : '~/.dotfiles/bin/rst2ctags/rst2ctags.py', -" \ 'ctagsargs' : '-f - --sort=yes', -" \ 'kinds' : [ -" \ 's:sections', -" \ 'i:images' -" \ ], -" \ 'sro' : '|', -" \ 'kind2scope' : { -" \ 's' : 'section', -" \ }, -" \ 'sort': 0, -" \ } +" Show outline of rst files +let g:tagbar_type_rst = { + \ 'ctagstype': 'reStructuredText', + \ 'kinds' : [ + \ 'c:chapters:0', + \ ], + \ 'sort': 0, + \ } " SOURCE: https://github.com/mtscout6/vim-tagbar-css/blob/master/plugin/tagbar-css.vim let g:tagbar_type_css = {