feat(editors/helix): add support for Helix

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-09-09 15:19:45 +02:00
parent db826b8fdc
commit 3f09655707
Signed by: mfocko
GPG key ID: 7C47D46246790496
10 changed files with 62 additions and 0 deletions

View file

@ -76,3 +76,7 @@
# Install and configure VSCode # Install and configure VSCode
- role: user/editors/vscode - role: user/editors/vscode
tags: vscode tags: vscode
# Install and configure Helix
- role: user/editors/helix
tags: helix

View file

@ -0,0 +1,8 @@
theme = "dracula_at_night"
[editor]
line-number = "relative"
rulers = [ 80, 100, 120 ]
[editor.indent-guides]
render = true

View file

@ -0,0 +1 @@
install_fedora-family.yml

View file

@ -0,0 +1 @@
install_fedora-family.yml

View file

@ -0,0 +1 @@
install_fedora-family.yml

View 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

View 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

View file

@ -0,0 +1 @@
install_suse.yml

View file

@ -0,0 +1,6 @@
---
- name: Install the Helix
ansible.builtin.package:
name: helix
state: present
become: true

View 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