feat: install language server for nvim via aur

This commit is contained in:
Max Hohlfeld 2023-08-07 21:40:41 +02:00
parent c824b94392
commit b63ccfddf0
2 changed files with 31 additions and 4 deletions

View File

@ -3,6 +3,9 @@ allTags := "nvim,xmonad,git,scripts"
default: default:
just --list just --list
install-dependencies:
ansible-galaxy collection install kewlfft.aur
setup-qwerty tags=allTags: setup-qwerty tags=allTags:
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}" ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"

View File

@ -54,8 +54,32 @@
- yaml-language-server # YAML - yaml-language-server # YAML
- ansible-lint # partly required for ansible - ansible-lint # partly required for ansible
- haskell-language-server # Haskell - haskell-language-server # Haskell
- rust-analyzer # Rust
# TODO ansible-language-server AUR
# TODO csharp-ls dotnet tool # TODO csharp-ls dotnet tool
# TODO vscode-langservers-extracted AUR
# TODO codelldb-bin AUR -> C/C++/Rust Debugger - name: Install language server from AUR
tags: setup
block:
- name: Enable user to use sudo pacman without password
become: true
ansible.builtin.lineinfile:
path: /etc/sudo.conf
line: 'max ALL=(ALL) NOPASSWD: /usr/bin/pacman'
state: present
validate: 'visudo -cf %s'
- name: Install language server from AUR
kewlfft.aur.aur:
use: paru
state: present
name:
- ansible-language-server # Ansible
- vscode-langservers-extracted # HTML, CSS
- codelldb-bin # C/C++/Rust Debugger
always:
- name: Disable user to use sudo pacman without password
become: true
ansible.builtin.lineinfile:
path: /etc/sudo.conf
line: 'max ALL=(ALL) NOPASSWD: /usr/bin/pacman'
state: absent
validate: 'visudo -cf %s'