1
0
Fork 0
dotfiles/ansible/roles/vim_plugins/tasks/main.yaml

31 lines
1.5 KiB
YAML

---
- name: Install and update vim plugins
git:
repo: "{{ item.repo }}"
dest: "~/.vim/pack/plugins/start/{{ item.name }}"
single_branch: true
recursive: false
loop:
- { name: "camelcasemotion" , repo: "https://github.com/vim-scripts/camelcasemotion" }
- { name: "easymotion" , repo: "https://github.com/easymotion/vim-easymotion.git" }
- { name: "highlighted-yank" , repo: "https://github.com/machakann/vim-highlightedyank.git" }
- { name: "indent-object" , repo: "https://github.com/michaeljsmith/vim-indent-object.git" }
- { name: "lightline" , repo: "https://github.com/itchyny/lightline.vim.git" }
- { name: "paragraph-motion" , repo: "https://github.com/dbakker/vim-paragraph-motion.git" }
- { name: "rainbow" , repo: "https://github.com/luochen1990/rainbow.git" }
- { name: "repeat" , repo: "https://github.com/tpope/vim-repeat.git" }
- { name: "sleuth" , repo: "https://github.com/tpope/vim-sleuth.git" }
- { name: "surround" , repo: "https://github.com/tpope/vim-surround.git" }
- { name: "visual-multi" , repo: "https://github.com/mg979/vim-visual-multi.git" }
- { name: "visual-star-search" , repo: "https://github.com/nelstrom/vim-visual-star-search.git" }
loop_control:
label: "{{ item.name }}"
- name: Delete unused vim plugins
file:
path: "~/.vim/pack/plugins/start/{{ item }}"
state: absent
loop:
- "replace-with-register"