vim: Fix YCM compilation

This commit is contained in:
2021-09-25 19:09:30 +02:00
parent 408595d7e1
commit d946aa4b4c

View File

@@ -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