tags update
authorMart Lubbers <mart@martlubbers.net>
Wed, 21 Nov 2018 08:25:38 +0000 (09:25 +0100)
committerMart Lubbers <mart@martlubbers.net>
Wed, 21 Nov 2018 08:25:38 +0000 (09:25 +0100)
clean/.local/bin/cpm.sh
vim/.vim/after/ftplugin/clean.vim

index a51a0aa..6ec11bf 100755 (executable)
@@ -11,10 +11,10 @@ cpm "$@" |& grep -v\
 
 if git rev-parse --show-toplevel 2>/dev/null
 then
+       gitroot="$(git rev-parse --show-toplevel)"
        cloogletags -a -c\
-               -d "$(git rev-parse --show-toplevel)"\
-               -d "$CLEAN_HOME/lib/"\
-               -o "$CLEAN_HOME/lib/tags"\
+               -d "$gitroot"\
+               -o "$gitroot/.tags"\
                |& grep -v\
                        -e "^Doc warning: expected @type for '"\
                        -e "^Doc error: missing leading asterisk in '"\
index 0f43883..56402d5 100644 (file)
@@ -1,2 +1,2 @@
 setlocal tags+=/opt/clean/lib/tags
-set statusline+=%{cleanvim#tags#statusline()}
+setlocal tags+=./.tags;/