dotfiles/tasks/vscode.yml

76 lines
2 KiB
YAML
Raw Normal View History

2019-03-14 21:34:29 +00:00
- name: "Install VSCode packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'community/code'
- 'universal-ctags-git'
- file:
src: "{{ home }}/.config/Code - OSS"
dest: "{{ home }}/.config/Code"
2019-02-11 09:10:05 +00:00
mode: 0755
owner: "{{ user }}"
state: link
force: true
2018-10-06 12:47:13 +01:00
- file:
path: '{{ home }}/.config/Code/User'
state: directory
owner: "{{ user }}"
mode: 0755
2018-09-10 09:20:53 +01:00
- copy:
src: ./files/vscode-settings.json
2018-09-17 17:22:15 +01:00
dest: "{{ home }}/.config/Code/User/settings.json"
2018-09-10 09:20:53 +01:00
mode: 0644
2018-09-17 17:22:15 +01:00
owner: "{{ user }}"
2018-09-10 09:20:53 +01:00
- copy:
src: ./files/vscode-keybindings.json
2018-09-17 17:22:15 +01:00
dest: "{{ home }}/.config/Code/User/keybindings.json"
2018-09-10 09:20:53 +01:00
mode: 0644
2018-09-17 17:22:15 +01:00
owner: "{{ user }}"
2018-09-11 09:12:11 +01:00
2018-09-14 09:01:11 +01:00
- name: "Get VSCode extensions"
shell: "code --list-extensions"
become: true
2018-09-17 17:22:15 +01:00
become_user: "{{ user }}"
2018-09-11 09:12:11 +01:00
register: vscode_extensions
- name: "Install VSCode extensions"
shell: "code --install-extension {{ item }} --force"
2018-09-14 09:01:11 +01:00
become: true
2018-09-17 17:22:15 +01:00
become_user: "{{ user }}"
2018-09-14 09:01:11 +01:00
when: "item not in vscode_extensions.stdout_lines"
2018-09-11 09:12:11 +01:00
with_items:
- 'PKief.material-icon-theme'
- 'Zignd.html-css-class-completion'
- 'christian-kohler.npm-intellisense'
- 'dbaeumer.vscode-eslint'
- 'eamodio.gitlens'
2019-05-11 16:55:42 +01:00
- 'ms-vscode.vscode-typescript-tslint-plugin'
2018-09-11 09:12:11 +01:00
- 'ionutvmi.path-autocomplete'
- 'mrmlnc.vscode-less'
- 'mrmlnc.vscode-scss'
- 'ms-python.python'
- 'ms-vscode.sublime-keybindings'
- 'rokoroku.vscode-theme-darcula'
- 'truman.autocomplate-shell'
- 'wholroyd.jinja'
- 'formulahendry.auto-close-tag'
- 'James-Yu.latex-workshop'
2019-05-11 16:55:42 +01:00
- 'streetsidesoftware.code-spell-checker'
2018-09-11 09:12:11 +01:00
- 'editorconfig.editorconfig'
- 'vsciot-vscode.vscode-arduino'
- 'vscoss.vscode-ansible'
- 'rust-lang.rust'
2019-05-11 16:55:42 +01:00
- 'pnp.polacode'
- 'mrmlnc.vscode-duplicate'
- 'Tyriar.sort-lines'
- 'esbenp.prettier-vscode'
2019-05-11 17:27:25 +01:00
- 'jspolancor.presentationmode'