mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-28 14:50:22 +00:00
254d657147
* sublime text 3 * renamed variable * sublime text 3 * Update default.config.yml * PR #110: Update Sublime Text automation so it's a little simpler to configure. * A couple cosmetic touchups. * Add Sublime Markdown configuration and fix Package Control install. * Add a few more Sublime preference files to make the editor work like I like it. * More Sublime Text automation. * Saner default for those who don't use Sublime. * Add remaining tweaks to get Playbook idempotent with Sublime Text. Co-authored-by: dspolleke <dspolleke@gmail.com>
29 lines
1 KiB
YAML
29 lines
1 KiB
YAML
---
|
|
- name: Ensure Sublime Text directories exist.
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
loop:
|
|
- "{{ sublime_base_path }}/{{ sublime_config_path }}"
|
|
- "{{ sublime_base_path }}/Installed Packages"
|
|
|
|
- name: Ensure Sublime Package Control is installed.
|
|
get_url:
|
|
url: "https://packagecontrol.io/Package%20Control.sublime-package"
|
|
dest: "{{ sublime_base_path }}/Installed Packages/Package Control.sublime-package"
|
|
|
|
- name: Ensure Sublime Package Control Packages are configured.
|
|
template:
|
|
src: templates/Package_Control.sublime-settings.j2
|
|
dest: "{{ sublime_base_path }}/{{ sublime_config_path }}/Package Control.sublime-settings"
|
|
|
|
- name: Ensure Sublime text user Preferences and theme are set.
|
|
copy:
|
|
src: "files/sublime/{{ item }}"
|
|
dest: "{{ sublime_base_path }}/{{ sublime_config_path }}/{{ item }}"
|
|
loop:
|
|
- "Cobalt (SL).tmTheme"
|
|
- "Markdown.sublime-settings"
|
|
- "Plain text.sublime-settings"
|
|
- "Preferences.sublime-settings"
|
|
- "WordCount.sublime-settings"
|