Skip to content

Commit

Permalink
Add kickstart.nvim as submodule
Browse files Browse the repository at this point in the history
This allows me to template the init based on whether it's going to a
desktop or a server
  • Loading branch information
Encephala committed Jan 14, 2024
1 parent 86e5910 commit fc06bef
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "roles/provision/files/kickstart.nvim"]
path = roles/provision/files/kickstart.nvim
url = [email protected]:encephala/kickstart.nvim
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ansible.python.interpreterPath": "/bin/python3",
"files.associations": {
"*.yml": "ansible"
"*.yml": "ansible",
"init.lua.j2": "lua",
},
}
1 change: 1 addition & 0 deletions roles/provision/files/kickstart.nvim
Submodule kickstart.nvim added at 28aa51
34 changes: 29 additions & 5 deletions roles/provision/tasks/dotfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,36 @@
group: "{{ gid }}"
mode: "0755"

- name: Clone kickstart.nvim
ansible.builtin.git:
repo: "https://github.com/encephala/kickstart.nvim.git"
- name: Ensure nvim exists in .config
ansible.builtin.file:
dest: "{{ home }}/.config/nvim"
become: true
become_user: "{{ provision_username }}"
state: directory
owner: "{{ uid }}"
group: "{{ gid }}"
mode: "0755"

- name: Copy kickstart.nvim dependencies
ansible.builtin.copy:
src: kickstart.nvim/lua
dest: "{{ home }}/.config/nvim/"
owner: "{{ uid }}"
group: "{{ gid }}"
mode: "0755"

- name: Copy init.lua
ansible.builtin.template:
src: kickstart.nvim/init.lua.j2
dest: "{{ home }}/.config/nvim/init.lua"
owner: "{{ uid }}"
group: "{{ gid }}"
mode: "0644"

# - name: Clone kickstart.nvim
# ansible.builtin.git:
# repo: "https://github.com/encephala/kickstart.nvim.git"
# dest: "{{ home }}/.config/nvim"
# become: true
# become_user: "{{ provision_username }}"

- name: Run kickstart.nvim setup
ansible.builtin.command:
Expand Down

0 comments on commit fc06bef

Please sign in to comment.