From ea470d4c92d34b591471b05c57d73af60b3fdf50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 13 Apr 2024 17:58:33 +0200 Subject: [PATCH] vim: Simplicy plugin setup --- user.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/user.yml b/user.yml index c4da552..ae30a2a 100644 --- a/user.yml +++ b/user.yml @@ -290,24 +290,15 @@ force: true - name: install vim plugins - command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall' + command: nvim --headless +PlugInstall +qall register: vim_plugin_install changed_when: vim_plugin_install.stderr != "" - - name: install go binaries for vim - command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall' - changed_when: false - - name: update vim plugins - command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall' + command: nvim --headless +PlugUpdate +qall register: vim_plugin_update changed_when: vim_plugin_update.stderr != "" - tags: [user-update] - - name: update go binaries for vim - command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall' - changed_when: false - tags: [user-update] tags: [vim-plugins] - block: