Install neovim as appimage
This commit is contained in:
parent
036dbccad9
commit
683366b7a4
1 changed files with 27 additions and 3 deletions
|
@ -1,13 +1,37 @@
|
||||||
---
|
---
|
||||||
- name: install required packages
|
- name: install prerequisites
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- python3
|
- nodejs
|
||||||
|
- npm
|
||||||
- python-neovim
|
- python-neovim
|
||||||
- neovim
|
- python3
|
||||||
- ripgrep
|
- ripgrep
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: download neovim appimage
|
||||||
|
get_url:
|
||||||
|
url: https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
||||||
|
dest: /tmp
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: extract neovim appimage
|
||||||
|
shell: |
|
||||||
|
rm -rf /usr/local/bin/nvim.appimage
|
||||||
|
/tmp/nvim.appimage --appimage-extract
|
||||||
|
mv squashfs-root /usr/local/bin/nvim.appimage
|
||||||
|
chmod -R 4755 /usr/local/bin/nvim.appimage
|
||||||
|
chmod -R -s /usr/local/bin/nvim.appimage
|
||||||
|
rm -f /tmp/nvim.appimage
|
||||||
|
args:
|
||||||
|
chdir: /tmp
|
||||||
|
|
||||||
|
- name: install neovim link
|
||||||
|
alternatives:
|
||||||
|
name: nvim
|
||||||
|
path: /usr/local/bin/nvim.appimage/usr/bin/nvim
|
||||||
|
link: /usr/bin/nvim
|
||||||
|
|
||||||
- name: create nvim plugin directory
|
- name: create nvim plugin directory
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue