From 6ef6f806d3a63fc9c41a1f0a7905fe74faac4017 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Mon, 15 Jun 2020 09:33:46 -0400 Subject: [PATCH] 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 --- .bash_aliases | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index e98ead3..569b0b1 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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" + + diff --git a/README.md b/README.md index 6ee707e..6b279e4 100644 --- a/README.md +++ b/README.md @@ -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 ```