dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 3c40ea6e56f45e6b5a31a17e541f293c6b05ae6f
parent 0ed847a0b8228d8d8c9326d872da53c44bb542eb
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 11 Aug 2018 19:39:10 -0400

Abandon gutentags in favor of the tpope method

Diffstat:
M.gitconfig | 1+
M.local/bin/my-init | 1-
A.local/lib/gitdir/hooks/ctags | 6++++++
A.local/lib/gitdir/hooks/post-checkout | 2++
A.local/lib/gitdir/hooks/post-commit | 2++
A.local/lib/gitdir/hooks/post-merge | 2++
A.local/lib/gitdir/hooks/post-rewrite | 4++++
M.vim/vimrc | 1-
8 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/.gitconfig b/.gitconfig @@ -21,5 +21,6 @@ pretty = log --graph --abbrev-commit --pretty=oneline --decorate --all ls-all = !git ls-tree --name-only -r HEAD $(git rev-parse --show-toplevel) ls-r = ls-tree --name-only -r HEAD + ctags = !`git rev-parse --git-dir`/hooks/ctags [init] templatedir = ~/.local/lib/gitdir diff --git a/.local/bin/my-init b/.local/bin/my-init @@ -169,7 +169,6 @@ then __clone junegunn/goyo.vim __clone junegunn/limelight.vim __clone ajh17/VimCompletesMe - __clone ludovicchabant/vim-gutentags __clone beloglazov/vim-online-thesaurus __clone jszakmeister/vim-togglecursor __clone chr4/sslsecure.vim diff --git a/.local/lib/gitdir/hooks/ctags b/.local/lib/gitdir/hooks/ctags @@ -0,0 +1,6 @@ +#!/bin/sh +PATH="/usr/local/bin:$PATH" +dir="`git rev-parse --git-dir`" +trap 'rm -f "$dir/$$.tags"' EXIT +git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" +mv "$dir/$$.tags" "$dir/tags" diff --git a/.local/lib/gitdir/hooks/post-checkout b/.local/lib/gitdir/hooks/post-checkout @@ -0,0 +1,2 @@ +#!/bin/sh +`git rev-parse --git-dir`/hooks/ctags >/dev/null 2>&1 & diff --git a/.local/lib/gitdir/hooks/post-commit b/.local/lib/gitdir/hooks/post-commit @@ -0,0 +1,2 @@ +#!/bin/sh +`git rev-parse --git-dir`/hooks/ctags >/dev/null 2>&1 & diff --git a/.local/lib/gitdir/hooks/post-merge b/.local/lib/gitdir/hooks/post-merge @@ -0,0 +1,2 @@ +#!/bin/sh +`git rev-parse --git-dir`/hooks/ctags >/dev/null 2>&1 & diff --git a/.local/lib/gitdir/hooks/post-rewrite b/.local/lib/gitdir/hooks/post-rewrite @@ -0,0 +1,4 @@ +#!/bin/sh +case "$1" in + rebase) exec .git/hooks/post-merge ;; +esac diff --git a/.vim/vimrc b/.vim/vimrc @@ -48,7 +48,6 @@ endif " Globals {{{ let readline_has_bash=1 -let g:gutentags_project_root = ['.git','.project','.svn'] let delimitMate_expand_space = 1 let delimitMate_expand_cr = 1 if exists('$TMUX')