Created
October 30, 2021 17:47
-
-
Save pmandreoli/3815270644d7da7afb4bdb313afde3c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - 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