Skip to content

kmezynski/ansible-role-neovim

Repository files navigation

CI pre-commit.ci status License Code of Conduct Conventional Commits

Ansible Role: Neovim

Installs Neovim with or without Packer plugin manager on RHEL or Debian/Ubuntu servers.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (refer to defaults and vars directories).

neovim_git_ref: master
neovim_path: /usr/local

These variables control Neovim installation process:

  • neovim_path - path to Neovim binary (bin/nvim is appended automatically).
  • neovim_git_ref - git reference of Neovim repository to be installed.
neovim_packer: false
neovim_packer_config_path: "{{ ansible_user_dir }}/.config/nvim/lua/custom"

Above variables configures Packer plugin manager installation:

  • neovim_packer - enables Packer installation.
  • neovim_packer_config_path - path to Packer's basic configuration.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - role: kmezynski.neovim
      neovim_git_ref: v0.9.1
      neovim_path: /usr # bin/nvim is appended automatically
      neovim_packer: true

License

This role is distributed under the terms of MIT license.

Author Information

This role was created in 2023 by Kamil Mężyński.