ansible_neovim
Neovim Ansible
Install neovim
from package, appimage or build source and configure plugins.
Compile from source or appimage use by default the .local/bin dir from the user's home.
Vim
Make a single config for vim + nvim.
Var
Variables | Usage | Default |
---|---|---|
nvim_installation |
package/appimage/source | package (eg: apt for debian like) |
nvim_version |
latest | |
nvim_install_dir |
/home/$USER | |
nvim_user |
$USER | |
nvim_source_dest |
/tmp | |
nvim_source_version |
master | |
nvim_source_build_mode |
Release | |
have_root |
Extra var for source installation if set to false skip deps | |
nvim_autoload_dir |
nvim_install_dir /.local/share/nvim/site/autoload |
|
vim_autoload_dir |
nvim_install_dir /.vim/autoload |
|
nvim_conf_dir |
nvim_install_dir /.config/nvim |
|
nvim_conf |
nvim_install_dir /.config/nvim/init.vim |
|
vim_conf |
nvim_install_dir /.virmc |
|
nvim_plugins |
List of vim plugins, accept mapping entry with options for vim plug | [] |
exclusive_nvim_plugins |
[] | |
exclusive_vim_plugins |
[] | |
nvim_configuration |
Vim config script | "" |
exclusive_nvim_configuration |
"" | |
exclusive_vim_configuration |
"" |
Usage
Add the project to your galaxy requirement
- name: "ansible-neovim"
src: "https://github.com/PTank/ansible-neovim.git"
version: "master"
Playbook:
-name: Install Nvim
host: localhost
connection: local
tasks:
- import_role:
name: ansible-neovim
vars:
nvim_configuration: |
set number
set t_Co=256
nvim_plugins:
- name: junegunn/fzf
options:
dir: '~/.fzf'
do: './install --all'
- junegunn/fzf.vim
- vim-airline/vim-airline
- vim-airline/vim-airline-themes
Or to make multiple users
-name: Install Nvim
tasks:
- import_role:
name: ansible-neovim
tasks_from: package.yml # Installation with the package manager
- import_role:
name: ansible-neovim
tasks_from: python_support.yml # Extra
- import_role:
name: ansible-neovim
tasks_from: configuration.yml
vars:
nvim_configuration: |
set number
set t_Co=256
nvim_install_dir: "/home/{{ item }}"
nvim_user: "{{ item }}"
with_items:
- user_name
If you want to add a pre-clean or just clean this installation:
- import_role:
name: ansible-neovim
tasks_from: clean_config
About
Install and configure Vim and NVim
Install
ansible-galaxy install PTank/ansible-neovim
License
mit
Downloads
24
Owner