From a3deaf65468f429fbac48d996d3acaccc6028f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 25 Sep 2021 19:09:30 +0200 Subject: [PATCH] vim: Fix YCM compilation --- user.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/user.yml b/user.yml index c1a69fb..e2de76e 100644 --- a/user.yml +++ b/user.yml @@ -312,9 +312,13 @@ changed_when: vim_plugins_stdout.stdout_lines|length != 0 - name: compile youcompleteme + # --force-sudo is required, as the script refuses to run + # in a sudo environment (i.e. if the SUDO_USER env variable + # is set). But of course, ansible uses that to assume the + # other user. It's fine. shell: | cd ~/.local/share/nvim/plugged/YouCompleteMe/ - python3 ./install.py # --go-completer + python3 ./install.py --force-sudo args: creates: ~/.local/share/nvim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.so when: vim_plugins_stdout.stdout_lines|length != 0 or true