Skip to content

Commit

Permalink
More liniting
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed May 3, 2024
1 parent 7eb00c0 commit dd75c95
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
23 changes: 9 additions & 14 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
---
galaxy_info:
author: buluma
role_name: nvim
description: Ansible role to install nvim configuration
author: buluma
description: Install and Configure NVIM on your Linux systems.
company: ShadowNet
license: Apache-2.0

min_ansible_version: "2.12"

min_ansible_version: "2.4"
platforms:
- name: Ubuntu
versions:
- all
- name: Debian
- name: Fedora
versions:
- all
- name: Fedora
- name: Ubuntu
versions:
- all
- name: Archlinux
- name: Debian
versions:
- all

galaxy_tags:
- development
- nvim
- neovim
- vim

- editor
dependencies: []
2 changes: 1 addition & 1 deletion tasks/01-define-role-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
key: "{{ nvim_user }}"
split: ":"

- name: 01-define-role-facts | Define nvim_user_home as {{ nvim_user }} home directory
- name: 01-define-role-facts | Define nvim_user_home home directory as {{ nvim_user }}
ansible.builtin.set_fact:
nvim_user_home: "{{ getent_passwd[nvim_user][4] }}"

Expand Down
4 changes: 2 additions & 2 deletions tasks/03-install-neovim-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
$HOME/.local/share/fzf/install \
{% if nvim_fzf_bin_only -%}
--bin
{%- else -%}
{%- else -%}
--all
{%- endif %}
{%- endif %}
executable: /bin/bash
creates: "{{ nvim_user_home }}/.local/share/fzf/bin/fzf"
become: true
Expand Down
8 changes: 4 additions & 4 deletions tasks/04-install-neovim-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
become_user: "{{ nvim_user }}"

- name: 04-install-neovim-rc | Install lua-language-server manually
environment:
HOME: "{{ nvim_user_home }}"
become: true
become_user: "{{ nvim_user }}"
block:
- name: 04-install-neovim-rc | Make reuqired directory
ansible.builtin.file:
Expand Down Expand Up @@ -104,7 +108,3 @@
executable: /bin/bash
chdir: "{{ lua_ls_dest }}"
creates: "{{ lua_ls_dest }}/bin/Linux/lua-language-server"
environment:
HOME: "{{ nvim_user_home }}"
become: true
become_user: "{{ nvim_user }}"

0 comments on commit dd75c95

Please sign in to comment.