From d5b0405b9938e526089b87f7c46a3acf6fde56f2 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 8 Mar 2023 22:55:34 -0500 Subject: [PATCH] fix: default nvim desktop mime-apps --- modules/common/neovim/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/common/neovim/default.nix b/modules/common/neovim/default.nix index cf23eb3..69ec7b3 100644 --- a/modules/common/neovim/default.nix +++ b/modules/common/neovim/default.nix @@ -34,6 +34,14 @@ in { programs.kitty.settings.scrollback_pager = lib.mkForce '' ${neovim}/bin/nvim -c 'setlocal nonumber nolist showtabline=0 foldcolumn=0|Man!' -c "autocmd VimEnter * normal G" -''; + xdg.desktopEntries.nvim = { + name = "Neovim wrapper"; + exec = "kitty nvim %F"; + }; + xdg.mimeApps = { + defaultApplications."text/markdown" = [ "nvim.desktop" ]; + }; + }; # # Used for icons in Vim