Skip to content

Instantly share code, notes, and snippets.

@etaf
Last active May 16, 2019 05:20
Show Gist options
  • Save etaf/dc805db86de44121af34871bb1f7781f to your computer and use it in GitHub Desktop.
Save etaf/dc805db86de44121af34871bb1f7781f to your computer and use it in GitHub Desktop.
gtags with python support
# 1 install universal ctags first.
# if mac:
# brew install libxml2
# ln -s /usr/local/Cellar/libxml2/2.9.9_2/include/libxml2/libxml /usr/local/include/libxml
git clone https://github.com/universal-ctags/ctags.git
cd ctags
./autogen.sh
./configure --prefix=${HOME}/.local
make -j$(nproc) && make install
# 2 downolad gtags
# if mac: brew install libtool automake pkg-config libevent
cd global-6.6.3
rm -rf libltdl/*
./reconf.sh
./configure --prefix=${HOME}/.local
make -j8 && make install
# 3 install global-pygments-plugin
git clone https://github.com/yoshizow/global-pygments-plugin.git
cd global-pygments-plugin
./reconf.sh
./configure --prefix=${HOME}/.local
make -j8 && make install
edit copy ${HOME}/.local/share/gtags/gtags.conf to ~/.globalrc
modify as:
default:\
:tc=native:tc=pygments:
done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment