From 4d0c1811a3dac32947b6bfbe346f9a4b4d3998fb Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 7 Sep 2023 00:11:33 +0000 Subject: [PATCH] neovim: associate with json/txt/md --- hosts/common/programs/neovim.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/common/programs/neovim.nix b/hosts/common/programs/neovim.nix index 2c8d5f46..b5d68c36 100644 --- a/hosts/common/programs/neovim.nix +++ b/hosts/common/programs/neovim.nix @@ -91,6 +91,10 @@ in env.EDITOR = "vim"; # git claims it should use EDITOR, but it doesn't! env.GIT_EDITOR = "vim"; + mime.priority = 200; # default=100 => yield to other, more specialized applications + mime.associations."application/schema+json" = "nvim.desktop"; + mime.associations."plain/text" = "nvim.desktop"; + mime.associations."text/markdown" = "nvim.desktop"; }; programs.neovim = mkIf config.sane.programs.neovim.enabled {