From c093037763abfd5e39310355381a2318cdc9e508 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 1 Feb 2023 18:46:38 +0100 Subject: [PATCH] default text editor to neovim --- README.md | 2 +- roles/neovim/tasks/main.yml | 7 +++++++ roles/neovim/vars/main.yml | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 roles/neovim/vars/main.yml diff --git a/README.md b/README.md index 1f34ff3..aeb6a6b 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ As an intermediate solution, I can just put the password in keepass... #### Neovim - More cool plugins :) -- default neovim editor - dropdown autocomplete - fzf in vim? telescope or something +- fix control+x in visual mode ## Long-term TODO diff --git a/roles/neovim/tasks/main.yml b/roles/neovim/tasks/main.yml index 79ac5eb..8d5f0a1 100644 --- a/roles/neovim/tasks/main.yml +++ b/roles/neovim/tasks/main.yml @@ -47,3 +47,10 @@ - name: Install terraform-ls apt: pkg: terraform-ls +- name: Set default applications + ini_file: + path: ~/.config/mimeapps.list + section: "Default Applications" + option: "{{ item }}" + value: "nvim.desktop" + loop: "{{ default_apps }}" diff --git a/roles/neovim/vars/main.yml b/roles/neovim/vars/main.yml new file mode 100644 index 0000000..68b25e2 --- /dev/null +++ b/roles/neovim/vars/main.yml @@ -0,0 +1,11 @@ +default_apps: + - application/x-perl + - text/plain + - text/x-chdr + - text/x-csrc + - text/x-dtd + - text/x-java + - text/mathml + - text/x-python + - text/x-sql + - text/xml