Skip to content

Commit

Permalink
Install neovim from source, add kickstart.nvim setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Encephala committed Jan 2, 2024
1 parent 38502ec commit 1d1a82a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ exclude_paths:
- playbooks/
- roles/dependencies/
- .github/

skip_list:
- latest
19 changes: 19 additions & 0 deletions roles/provision/tasks/dotfiles.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
---
# Set up git branch name in PS1 through bashrc
- name: Ensure .config exists in home
ansible.builtin.file:
dest: "{{ home }}/.config"
state: directory
owner: "{{ uid }}"
group: "{{ gid }}"
mode: "0755"

- name: Clone kickstart.nvim
ansible.builtin.git:
repo: "https://github.com/nvim-lua/kickstart.nvim.git"
dest: "{{ home }}/.config/nvim"

- name: Run kickstart.nvim setup
ansible.builtin.command:
cmd: nvim --headless "+Lazy! sync" +qa
creates: "{{ home }}/.local/share/nvim/"


- name: Bash
block:
- name: Set long bash history
Expand Down
1 change: 1 addition & 0 deletions roles/provision/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
tags:
- account


- name: Retrieve passwd information
ansible.builtin.getent:
database: passwd
Expand Down
15 changes: 14 additions & 1 deletion roles/provision/tasks/system_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
name:
- sudo
- neofetch
- neovim
- git
- curl
- htop
Expand All @@ -29,6 +28,20 @@
notify: Reboot required
when: reboot_required.stat.exists

- name: Install Neovim by appimage
ansible.builtin.get_url:
url: https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
dest: /usr/local/bin/nvim
mode: "0755"
owner: root
group: root

- name: Symlink Neovim to vim
ansible.builtin.file:
src: /usr/local/bin/nvim
dest: /usr/local/bin/vim
state: link

- name: Install QEMU guest agent if VM
ansible.builtin.apt:
name:
Expand Down

0 comments on commit 1d1a82a

Please sign in to comment.