Compare commits
5 Commits
cd0f9ab719
...
4c998c4a21
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c998c4a21 | |||
| 7e119171dd | |||
| 2f339474e8 | |||
| 7d100dbbe5 | |||
| d03d13975f |
35
user.yml
35
user.yml
@@ -272,20 +272,20 @@
|
||||
tags:
|
||||
- dotfiles
|
||||
|
||||
- name: create intermediate directories for vim-plug
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- ~/.local/
|
||||
- ~/.local/share/
|
||||
- ~/.local/share/nvim/
|
||||
- ~/.local/share/nvim/site/
|
||||
- ~/.local/share/nvim/site/autoload/
|
||||
- ~/.vim/
|
||||
- ~/.vim/autoload
|
||||
|
||||
- block:
|
||||
- name: create intermediate directories for vim-plug
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- ~/.local/
|
||||
- ~/.local/share/
|
||||
- ~/.local/share/nvim/
|
||||
- ~/.local/share/nvim/site/
|
||||
- ~/.local/share/nvim/site/autoload/
|
||||
- ~/.vim/
|
||||
- ~/.vim/autoload
|
||||
|
||||
- name: install vim-plug
|
||||
copy:
|
||||
src: contrib/vim-plug/plug.vim
|
||||
@@ -315,16 +315,19 @@
|
||||
failed_when: ycm_before_update.rc not in (0, 200)
|
||||
|
||||
- name: install vim plugins
|
||||
command: /usr/bin/nvim --headless +PlugInstall +qall
|
||||
changed_when: false
|
||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/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 GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall'
|
||||
changed_when: false
|
||||
|
||||
- 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
|
||||
register: vim_plugin_update
|
||||
changed_when: vim_plugin_update.stderr != ""
|
||||
|
||||
- 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'
|
||||
|
||||
@@ -48,16 +48,16 @@ Plug 'suan/vim-instant-markdown'
|
||||
"Plug 'marshallward/vim-restructuredtext'
|
||||
"Plug 'vim-syntastic/syntastic'
|
||||
"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 'editorconfig/editorconfig-vim'
|
||||
|
||||
Plug 'leafgarland/typescript-vim'
|
||||
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
||||
Plug 'prettier/vim-prettier', { 'do': 'npm install' }
|
||||
|
||||
Plug 'yuezk/vim-js'
|
||||
Plug 'maxmellon/vim-jsx-pretty'
|
||||
|
||||
Reference in New Issue
Block a user