Compare commits

..

5 Commits

2 changed files with 22 additions and 19 deletions

View File

@@ -272,7 +272,8 @@
tags: tags:
- dotfiles - dotfiles
- name: create intermediate directories for vim-plug - block:
- name: create intermediate directories for vim-plug
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
@@ -285,7 +286,6 @@
- ~/.vim/ - ~/.vim/
- ~/.vim/autoload - ~/.vim/autoload
- block:
- name: install vim-plug - name: install vim-plug
copy: copy:
src: contrib/vim-plug/plug.vim src: contrib/vim-plug/plug.vim
@@ -315,16 +315,19 @@
failed_when: ycm_before_update.rc not in (0, 200) failed_when: ycm_before_update.rc not in (0, 200)
- name: install vim plugins - name: install vim plugins
command: /usr/bin/nvim --headless +PlugInstall +qall command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall'
changed_when: false register: vim_plugin_install
changed_when: vim_plugin_install.stderr != ""
- name: install go binaries for vim - name: install go binaries for vim
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall' command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall'
changed_when: false changed_when: false
- name: update vim plugins - name: update vim plugins
command: /usr/bin/nvim --headless +PlugUpdate +qall command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall'
changed_when: false changed_when: false
register: vim_plugin_update
changed_when: vim_plugin_update.stderr != ""
- name: update go binaries for vim - name: update go binaries for vim
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall' command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'

View File

@@ -48,16 +48,16 @@ Plug 'suan/vim-instant-markdown'
"Plug 'marshallward/vim-restructuredtext' "Plug 'marshallward/vim-restructuredtext'
"Plug 'vim-syntastic/syntastic' "Plug 'vim-syntastic/syntastic'
"Plug 'ElmCast/elm-vim' "Plug 'ElmCast/elm-vim'
Plug 'avh4/elm-format' "Plug 'avh4/elm-format'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'fatih/vim-go'
Plug 'hashivim/vim-terraform' Plug 'hashivim/vim-terraform'
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
Plug 'leafgarland/typescript-vim' Plug 'leafgarland/typescript-vim'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' } Plug 'prettier/vim-prettier', { 'do': 'npm install' }
Plug 'yuezk/vim-js' Plug 'yuezk/vim-js'
Plug 'maxmellon/vim-jsx-pretty' Plug 'maxmellon/vim-jsx-pretty'