-
Notifications
You must be signed in to change notification settings - Fork 3
/
astrovim.src.pb
32 lines (32 loc) · 942 Bytes
/
astrovim.src.pb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- hosts: all
vars:
TYPE: astrovim
INSTANCE: git
REPO: https://github.com/AstroNvim/template
BINS:
- name: install.user.sh
exec: |
cat $DIR/etc/zshrc | envsubst | block-in-file -n "$ASTROVIM_APPNAME" ${ZSHRC/#\~/$HOME}
ln -sf $DIR/repo ~/.config/$ASTROVIM_APPNAME
- name: install-unception-git.sh
exec: git config --global --add core.editor "nvim --cmd 'let g:unception_block_while_host_edits=1'"
ETC_DIRS:
- plugins
ETC_FILES:
- name: init.lua
- name: zshrc
content: export NVIM_APPNAME="$ASTROVIM_APPNAME"
- name: community.lua
- name: plugins/dap.lua
- name: plugins/user.lua
LINKS:
- src: "{{ETC}}/init.lua"
dest: "{{REPO_DIR}}/lua/user/init.lua"
ENV:
ASTROVIM_APPNAME: "{{NAME}}"
ZSHRC: "~/.zshrc"
tasks:
- import_tasks: tasks/compfuzor.includes
vars:
type: opt