mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-08 04:35:07 +00:00
fixes, cli utils, vscode, coq
This commit is contained in:
parent
66109effc5
commit
634e4440d6
6 changed files with 101 additions and 2 deletions
|
|
@ -5,4 +5,5 @@
|
||||||
- perl
|
- perl
|
||||||
- ninja-build
|
- ninja-build
|
||||||
- git
|
- git
|
||||||
|
- make
|
||||||
state: latest
|
state: latest
|
||||||
|
|
|
||||||
32
roles/dev/tasks/coq.yml
Normal file
32
roles/dev/tasks/coq.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
- name: Install vscode (uncoded)
|
||||||
|
ansible.builtin.import_tasks: vscode.yml
|
||||||
|
|
||||||
|
- name: Install ocaml (required for lsp)
|
||||||
|
ansible.builtin.import_tasks: ocaml.yml
|
||||||
|
|
||||||
|
# TODO: add otion to choose ocaml switch
|
||||||
|
- name: "Installing coq lsp: pin version"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: opam pin add coq 8.18.0 --yes
|
||||||
|
environment:
|
||||||
|
OPAMSWITCH: default
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: "Installing coq lsp: lsp install"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: opam install vscoq-language-server --yes
|
||||||
|
environment:
|
||||||
|
OPAMSWITCH: default
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Downloading vscode coq lsp extension
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "https://open-vsx.org/api/maximedenes/vscoq/2.2.6/file/maximedenes.vscoq-2.2.6.vsix"
|
||||||
|
dest: "{{ ansible_env.HOME }}/.vscode_ext/vscoq.vsi"
|
||||||
|
mode: a
|
||||||
|
force: false
|
||||||
|
|
||||||
|
- name: "Installing vscode coq lsp extension"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: "{{ ansible_env.HOME }}/.bin/code --install-extension {{ ansible_env.HOME }}/.vscode_ext/vscoq.vsi"
|
||||||
|
changed_when: false
|
||||||
|
|
@ -13,6 +13,14 @@
|
||||||
ansible.builtin.import_tasks: haskell.yml
|
ansible.builtin.import_tasks: haskell.yml
|
||||||
when: "'haskell' in tools"
|
when: "'haskell' in tools"
|
||||||
|
|
||||||
|
- name: OCaml dev environment
|
||||||
|
ansible.builtin.import_tasks: haskell.yml
|
||||||
|
when: "'ocaml' in tools"
|
||||||
|
|
||||||
|
- name: Coq dev environment
|
||||||
|
ansible.builtin.import_tasks: coq.yml
|
||||||
|
when: "'coq' in tools"
|
||||||
|
|
||||||
- name: Text writing (typst) environment
|
- name: Text writing (typst) environment
|
||||||
ansible.builtin.import_tasks: txt.yml
|
ansible.builtin.import_tasks: txt.yml
|
||||||
when: "'txt' in tools"
|
when: "'txt' in tools"
|
||||||
|
|
@ -21,4 +29,4 @@
|
||||||
ansible.builtin.import_tasks: lang.yml
|
ansible.builtin.import_tasks: lang.yml
|
||||||
when: "'lang' in tools"
|
when: "'lang' in tools"
|
||||||
|
|
||||||
# TODO: ocaml, truffle, coq ...
|
# TODO: ocaml, truffle ...
|
||||||
|
|
|
||||||
23
roles/dev/tasks/ocaml.yml
Normal file
23
roles/dev/tasks/ocaml.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# TODO: use ansible ocaml package for install ??
|
||||||
|
- name: Install opam
|
||||||
|
ansible.builtin.dnf5:
|
||||||
|
name:
|
||||||
|
- opam
|
||||||
|
- gmp-devel
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: "Installing coq lsp: pin version"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: opam switch create default 5.3.0
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
# update fish path
|
||||||
|
- name: Get programs list to check fish presence
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: Update fish path for bun
|
||||||
|
ansible.builtin.shell: fish_add_path {{ ansible_env.HOME }}/.opam/default/bin
|
||||||
|
args:
|
||||||
|
executable: /usr/bin/fish
|
||||||
|
changed_when: true # change is checked inside fish_add_path
|
||||||
34
roles/dev/tasks/vscode.yml
Normal file
34
roles/dev/tasks/vscode.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
- name: Installing vscode deps
|
||||||
|
ansible.builtin.dnf5:
|
||||||
|
name:
|
||||||
|
- fuse
|
||||||
|
- libX11-devel
|
||||||
|
- libxkbfile-devel
|
||||||
|
- libsecret-devel
|
||||||
|
- fakeroot
|
||||||
|
- python3
|
||||||
|
- nss
|
||||||
|
- at-spi2-atk
|
||||||
|
- gtk3-devel
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
# TODO: dinamically get url from forder
|
||||||
|
- name: Installing vscode (uncoded)
|
||||||
|
# become: true
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "https://tilde.club/~megastallman/uncoded/code-oss-1754477678_amd64.AppImage"
|
||||||
|
dest: "{{ ansible_env.HOME }}/.bin/code"
|
||||||
|
mode: a+x
|
||||||
|
force: false
|
||||||
|
|
||||||
|
- name: Downloading vscode helix extension
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "https://open-vsx.org/api/jasew/vscode-helix-emulation/0.6.2/file/jasew.vscode-helix-emulation-0.6.2.vsix"
|
||||||
|
dest: "{{ ansible_env.HOME }}/.vscode_ext/vscode-helix-emulation.vsi"
|
||||||
|
mode: a
|
||||||
|
force: false
|
||||||
|
|
||||||
|
- name: "Installing vscode helix extension"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: "{{ ansible_env.HOME }}/.bin/code --install-extension {{ ansible_env.HOME }}/.vscode_ext/vscode-helix-emulation.vsi"
|
||||||
|
changed_when: false
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
- bash
|
- bash
|
||||||
- fish
|
- fish
|
||||||
- trash-cli
|
- trash-cli
|
||||||
|
- bat
|
||||||
|
|
||||||
# dev utils
|
# dev utils
|
||||||
- just
|
- just
|
||||||
|
|
@ -14,7 +15,7 @@
|
||||||
# edit utils
|
# edit utils
|
||||||
- helix
|
- helix
|
||||||
- micro
|
- micro
|
||||||
- nano
|
# - nano
|
||||||
- tmux
|
- tmux
|
||||||
- tmate
|
- tmate
|
||||||
- ripgrep
|
- ripgrep
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue