Skip to content

Commit

Permalink
Fix clangd path on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Aug 12, 2024
1 parent 3719225 commit 32086f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ add "$SCRIPT_DIR/nvim" "$HOME/.config/nvim"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
add "$SCRIPT_DIR/clangd" "$HOME/.config/clangd"
elif [[ "$OSTYPE" == "darwin"* ]]; then
add "$SCRIPT_DIR/clangd" "$HOME/Library/Preferences/clangd/"
macos_clangd_path="$HOME/Library/Preferences/clangd/"
mkdir -p "$macos_clangd_path"
add "$SCRIPT_DIR/clangd" "$macos_clangd_path"
else
echo "OS type unknown. Exiting."
exit 1
Expand Down
8 changes: 8 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env bash

rm -rf ~/.config/nvim
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
rm -rf "$HOME/.config/clangd"
elif [[ "$OSTYPE" == "darwin"* ]]; then
rm -rf "$HOME/Library/Preferences/clangd/"
else
echo "OS type unknown. Exiting."
exit 1
fi

0 comments on commit 32086f0

Please sign in to comment.