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
This commit is contained in:
Shaun Reed 2020-06-15 09:33:46 -04:00
parent da17f5423f
commit 6ef6f806d3
2 changed files with 6 additions and 1 deletions

View File

@ -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 libclang.so.1 2>/dev/null
#export LIBCLANG="/usr/lib/llvm-6.0/lib/libclang.so.1"

View File

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