Skip to content

Instantly share code, notes, and snippets.

@pmandreoli
Created October 30, 2021 17:47
Show Gist options
  • Select an option

  • Save pmandreoli/3815270644d7da7afb4bdb313afde3c2 to your computer and use it in GitHub Desktop.

Select an option

Save pmandreoli/3815270644d7da7afb4bdb313afde3c2 to your computer and use it in GitHub Desktop.
---
- name: install and configure nvim
hosts: localhost
become: yes
become_user: root
vars:
user: ubuntu
tasks:
- name: nvim install dependencies
package:
name: [ 'llvm', 'npm', 'fd-find', 'ripgrep', 'npm']
- name: nvim install dependencies
apt_repository:
repo: ppa:neovim-ppa/unstable
state: present
update_cache: yes
- name: latest nvim install
package:
name: ["neovim"]
state: present
- name: install language server
npm:
name: '{{ item }}'
global: yes
state: present
with_items:
- pyright
- bash-language-server
- name: Recursively remove directory
file:
path: /.config/nvim
state: directory
owner: "{{ user }}"
- name: clone nvim repo
git:
repo: 'https://github.com/andy941/nvim.git'
dest: '/home/{{ user }}/.config/nvim/'
clone: yes
update: yes
become: yes
become_user: "{{ user }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment