From c845d36e4444863151746021b17756f4dde2f1ad Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Mon, 6 Jul 2020 11:16:53 -0400 Subject: [PATCH] Fedora neovim nightly --- playbooks/input.yml | 7 +++++ playbooks/main.yml | 5 ++++ playbooks/roles/fedora/tasks/main.yml | 4 ++- .../roles/fedora/tasks/neovim-nightly.yaml | 28 +++++++++++++++++++ tmux/tmux.conf | 1 + 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 playbooks/roles/fedora/tasks/neovim-nightly.yaml diff --git a/playbooks/input.yml b/playbooks/input.yml index eaad757..3d8aa48 100644 --- a/playbooks/input.yml +++ b/playbooks/input.yml @@ -11,6 +11,10 @@ prompt: "Do you want to install rust extras?" private: no default: "no" + - name: _nightly_neovim + prompt: "Do you want neovim nightly?" + private: no + default: "no" tasks: - block: - name: Set dev machine fact @@ -19,3 +23,6 @@ - name: Set rust extras fact set_fact: _rust_extras: "{{ _rust_extras }}" + - name: Set nightly neovim fact + set_fact: + _nightly_neovim: "{{ _nightly_neovim }}" diff --git a/playbooks/main.yml b/playbooks/main.yml index 8ff9af7..a4214b0 100644 --- a/playbooks/main.yml +++ b/playbooks/main.yml @@ -19,6 +19,7 @@ vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" + - nightly_neovim: "{{ _nightly_neovim }}" - hosts: os_Fedora gather_facts: True @@ -30,6 +31,7 @@ vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" + - nightly_neovim: "{{ _nightly_neovim }}" - hosts: os_Archlinux gather_facts: True @@ -41,6 +43,7 @@ vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" + - nightly_neovim: "{{ _nightly_neovim }}" - hosts: os_Ubuntu gather_facts: False @@ -52,6 +55,7 @@ vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" + - nightly_neovim: "{{ _nightly_neovim }}" - hosts: os_openSUSE* gather_facts: True @@ -63,4 +67,5 @@ vars: - dev_machine: "{{ _dev_machine }}" - rust_extras: "{{ _rust_extras }}" + - nightly_neovim: "{{ _nightly_neovim }}" diff --git a/playbooks/roles/fedora/tasks/main.yml b/playbooks/roles/fedora/tasks/main.yml index 0645967..7d9fe6a 100644 --- a/playbooks/roles/fedora/tasks/main.yml +++ b/playbooks/roles/fedora/tasks/main.yml @@ -16,10 +16,12 @@ - cmake - tmux - gpg - - neovim - fzf + - rsync state: latest +- include_tasks: neovim-nightly.yaml + - name: Install @development-tools when: - dev_machine == true diff --git a/playbooks/roles/fedora/tasks/neovim-nightly.yaml b/playbooks/roles/fedora/tasks/neovim-nightly.yaml new file mode 100644 index 0000000..7cabe35 --- /dev/null +++ b/playbooks/roles/fedora/tasks/neovim-nightly.yaml @@ -0,0 +1,28 @@ +--- +- name: ensure copr command installed + become: yes + become_method: sudo + dnf: + name: + - dnf-command(copr) + state: latest + +- name: Add neovim-nightly copr + become: yes + become_method: sudo + when: + - nightly_neovim == true + command: + cmd: dnf copr enable -y agriffis/neovim-nightly + warn: false + creates: /etc/yum.repos.d/_copr_agriffis_neovim-nightly.repo + +- name: Install neovim-nightly + become: yes + become_method: sudo + when: + - nightly_neovim == true + dnf: + name: + - neovim + state: latest diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 1988e55..11f911e 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -5,6 +5,7 @@ set-option -sa terminal-overrides ',xterm-256color:RGB,alacritty:RGB' # set mouse/history stuff set -g mouse on set -g history-limit 20000 +set-option -g focus-events on # rebind prefix set -g prefix C-a