Reduce the scope of searching for libclang

+ Checks the /usr/ directory recursively

Add example path to more common libclang1
+ libclang-10-dev is not available on WSL
Shaun Reed 4 years ago
parent da17f5423f
commit 6ef6f806d3

@ -19,3 +19,8 @@ export EDITOR="vim"
export VISUAL="vim"
export LS_COLORS="di=1;34:ln=31;47:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43"
# Example path for autocompletion using libclang1 package, obtained by the following command
# find /usr/ -name 2>/dev/null
#export LIBCLANG="/usr/lib/llvm-6.0/lib/"

@ -22,7 +22,7 @@ I use the `libclang-10-dev` package for clang completion. You can use whichever
sudo apt install libclang-10-dev
printf "export LIBCLANG=\""$(find / -name 2>/dev/null)"\"\n\n" >> .bash_aliases
printf "export LIBCLANG=\""$(find /usr/ -name 2>/dev/null)"\"\n\n" >> .bash_aliases
echo "let g:clang_library_path=$LIBCLANG" >> ~/.vimrc