diff options
author | Aaditya Dhruv <[email protected]> | 2023-11-28 02:53:12 +0000 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-11-28 02:55:44 +0000 |
commit | b4f20596200dcd1d5801c391343b44c11d6955a6 (patch) | |
tree | 383dbee67e1db875650aa11f52186f97446e8305 | |
parent | 9fc4fdb61e0556b9acbe7acd543afe352be6d328 (diff) |
Add setup of vim plugins
-rw-r--r-- | src/config/tasks/main.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml index 3085580..4103663 100644 --- a/src/config/tasks/main.yaml +++ b/src/config/tasks/main.yaml @@ -47,7 +47,31 @@ loop: - .vimrc + - name: Setup vundle + become: true + become_user: {{ config.username }} + ansible.builtin.shell: 'git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim && vim +PluginInstall +qall' + ignore_errors: true + + - name: Install autoload in right directory + become: true + become_user: {{ config.username }} + ansible.builtin.copy: + src: "/home/{{ config.username }}/.vim/bundle/gruvbox-material/autoload/gruvbox_material.vim" + dest: "/home/{{ config.username }}/.vim/autoload/" + ignore_errors: true + + - name: Install colors in right directory + become: true + become_user: {{ config.username }} + ansible.builtin.copy: + src: "/home/{{ config.username }}/.vim/bundle/gruvbox-material/colors/gruvbox-material.vim" + dest: "/home/{{ config.username }}/.vim/colors/" + ignore_errors: true + - name: Setup vim/neovim directories + become: true + become_user: {{ config.username }} ansible.builtin.copy: src: "{{ item }}" dest: "/home/{{ config.username }}/.config" |