Skip to content

Commit

Permalink
feat: add option to disable neovim mouse support
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Aug 29, 2024
1 parent 5bae476 commit d1f8287
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ None.
history_time_format: true
systat_logging_enabled: true
vimrc: true
disable_neovim_mouse_support: false
```
## Dependencies
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ history_time_format: true
systat_logging_enabled: true
vimrc: true
epel_repofile_path: "/etc/yum.repos.d/epel.repo"
disable_neovim_mouse_support: false
7 changes: 7 additions & 0 deletions tasks/vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
name: "vim"
state: "absent"
when: "'neovim' in ansible_facts.packages"

- name: "Disable mouse support in neovim"
ansible.builtin.lineinfile:
path: "{{ lookup('env', 'HOME') }}/.config/nvim/init.vim"
line: "set mouse="
state: present
when: "'neovim' in ansible_facts.packages and disable_neovim_mouse_support"

0 comments on commit d1f8287

Please sign in to comment.