-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvim-unix.yml
40 lines (39 loc) · 1.35 KB
/
nvim-unix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
- name: Download and Install NeoVim
hosts:
- all
- "*"
- localhost
gather_facts: false
vars_files: vars.yml
tasks:
- name: Install NVM
block:
- name: Download NVM
get_url:
url: https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.tar.gz
dest: /tmp/nvm.tar.gz
mode: a+x
- name: Create NVM config folder
file:
path: "{{ unix_home }}/.config/nvim"
state: directory
recurse: yes
- name: Create NVM folder
file:
path: "{{ neovim_install_dir }}/nvim"
state: directory
recurse: yes
- name: Extract NVM
shell: tar zxvf /tmp/nvm.tar.gz --strip-components 1 -C '{{ neovim_install_dir }}/nvim'
- name: Add to path
shell: echo export PATH='{{ neovim_install_dir }}/nvim/bin:$PATH' >> '{{ unix_home }}/.profile'
- name: Install Packer
git:
repo: https://github.com/wbthomason/packer.nvim
dest: '{{ unix_home }}/.local/share/nvim/site/pack/packer/opt/packer.nvim'
depth: 1
- name: Add init
get_url:
url: https://raw.githubusercontent.com/c-jamie/dev-toolchain/master/dotfiles/init.lua
dest: '{{ unix_home }}/.config/nvim/init.lua'
mode: '0700'