feat(editors/helix): add support for Helix
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
db826b8fdc
commit
3f09655707
10 changed files with 62 additions and 0 deletions
|
@ -76,3 +76,7 @@
|
|||
# Install and configure VSCode
|
||||
- role: user/editors/vscode
|
||||
tags: vscode
|
||||
|
||||
# Install and configure Helix
|
||||
- role: user/editors/helix
|
||||
tags: helix
|
||||
|
|
8
roles/user/editors/helix/files/config.toml
Normal file
8
roles/user/editors/helix/files/config.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
theme = "dracula_at_night"
|
||||
|
||||
[editor]
|
||||
line-number = "relative"
|
||||
rulers = [ 80, 100, 120 ]
|
||||
|
||||
[editor.indent-guides]
|
||||
render = true
|
1
roles/user/editors/helix/tasks/install_AlmaLinux.yml
Symbolic link
1
roles/user/editors/helix/tasks/install_AlmaLinux.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
install_fedora-family.yml
|
1
roles/user/editors/helix/tasks/install_CentOS.yml
Symbolic link
1
roles/user/editors/helix/tasks/install_CentOS.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
install_fedora-family.yml
|
1
roles/user/editors/helix/tasks/install_Fedora.yml
Symbolic link
1
roles/user/editors/helix/tasks/install_Fedora.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
install_fedora-family.yml
|
12
roles/user/editors/helix/tasks/install_Ubuntu.yml
Normal file
12
roles/user/editors/helix/tasks/install_Ubuntu.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Enable the PPA for Helix
|
||||
ansible.builtin.apt_repository:
|
||||
repo: ppa:maveonair/helix-editor
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Install the Helix
|
||||
ansible.builtin.package:
|
||||
name: helix
|
||||
state: present
|
||||
become: true
|
12
roles/user/editors/helix/tasks/install_fedora-family.yml
Normal file
12
roles/user/editors/helix/tasks/install_fedora-family.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Enable the Copr
|
||||
community.general.copr:
|
||||
name: varlad/helix
|
||||
state: enabled
|
||||
become: true
|
||||
|
||||
- name: Install the Helix
|
||||
ansible.builtin.package:
|
||||
name: helix
|
||||
state: present
|
||||
become: true
|
1
roles/user/editors/helix/tasks/install_openSUSE Tumbleweed.yml
Symbolic link
1
roles/user/editors/helix/tasks/install_openSUSE Tumbleweed.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
install_suse.yml
|
6
roles/user/editors/helix/tasks/install_suse.yml
Normal file
6
roles/user/editors/helix/tasks/install_suse.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Install the Helix
|
||||
ansible.builtin.package:
|
||||
name: helix
|
||||
state: present
|
||||
become: true
|
16
roles/user/editors/helix/tasks/main.yml
Normal file
16
roles/user/editors/helix/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: Packages
|
||||
ansible.builtin.include_tasks: "install_{{ ansible_distribution }}.yml"
|
||||
tags: install
|
||||
|
||||
- name: Create directory for Helix config
|
||||
ansible.builtin.file:
|
||||
path: ~/.config/helix
|
||||
state: directory
|
||||
mode: 0744
|
||||
|
||||
- name: Install the config
|
||||
ansible.builtin.copy:
|
||||
src: files/config.toml
|
||||
dest: ~/.config/helix/config.toml
|
||||
mode: 0644
|
Loading…
Reference in a new issue