Added Neovim
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
{{- $email := promptStringOnce . "email" "What's your email?" }}
|
{{- $email := promptStringOnce . "email" "What's your email" }}
|
||||||
{{- $git_name := promptStringOnce . "git_name" "What's your Git name?" }}
|
{{- $git_name := promptStringOnce . "git_name" "What's your Git name" }}
|
||||||
|
|
||||||
{{- $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell?" true }}
|
{{- $shell := promptBoolOnce . "features.shell" "Do you want to install the Fish shell" true }}
|
||||||
{{- $git := promptBoolOnce . "features.git" "Do you want to install Git?" true }}
|
{{- $git := promptBoolOnce . "features.git" "Do you want to install Git" true }}
|
||||||
|
{{- $editor := promptBoolOnce . "features.editor" "Do you want to install Neovim" true }}
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
@@ -11,3 +12,4 @@ git_name = {{ $git_name | quote }}
|
|||||||
[data.features]
|
[data.features]
|
||||||
shell = {{ $shell }}
|
shell = {{ $shell }}
|
||||||
git = {{ $git }}
|
git = {{ $git }}
|
||||||
|
editor = {{ $editor }}
|
||||||
|
@@ -6,3 +6,7 @@
|
|||||||
{{- if not .features.git }}
|
{{- if not .features.git }}
|
||||||
.config/git
|
.config/git
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if not .features.editor }}
|
||||||
|
.config/nvim
|
||||||
|
{{- end }}
|
||||||
|
7
home/private_dot_config/fish/conf.d/aliases.fish
Normal file
7
home/private_dot_config/fish/conf.d/aliases.fish
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
abbr --add --position command l ls -lAh
|
||||||
|
|
||||||
|
{{- if .features.editor }}
|
||||||
|
# Alias `vi` and `vim` to Neovim
|
||||||
|
abbr --add --position command vim nvim
|
||||||
|
abbr --add --position command vi nvim
|
||||||
|
{{- end }}
|
4
home/private_dot_config/fish/conf.d/environment.fish
Normal file
4
home/private_dot_config/fish/conf.d/environment.fish
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{{- if .features.editor }}
|
||||||
|
# Set Neovim to be the default editor
|
||||||
|
set --export EDITOR nvim
|
||||||
|
{{- end }}
|
0
home/private_dot_config/nvim/.gitkeep
Normal file
0
home/private_dot_config/nvim/.gitkeep
Normal file
@@ -27,3 +27,5 @@
|
|||||||
when: features.shell == true
|
when: features.shell == true
|
||||||
- role: git
|
- role: git
|
||||||
when: features.git == true
|
when: features.git == true
|
||||||
|
- role: editor
|
||||||
|
when: features.editor == true
|
||||||
|
5
setup-script/roles/editor/tasks/main.yaml
Normal file
5
setup-script/roles/editor/tasks/main.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Install Neovim on Arch
|
||||||
|
become: true
|
||||||
|
ansible.builtin.pacman:
|
||||||
|
name: neovim
|
||||||
|
when: chezmoi.osRelease.id == "arch"
|
Reference in New Issue
Block a user