From 6bd6bf214132e49f0cea6e90e3bf9b5d0dc3eedd Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 10 Jun 2023 13:37:52 +0530 Subject: [PATCH] handle xdg on darwin --- home/programs/neovim.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/home/programs/neovim.nix b/home/programs/neovim.nix index 027c373..f0c00ec 100644 --- a/home/programs/neovim.nix +++ b/home/programs/neovim.nix @@ -1,8 +1,9 @@ {pkgs, ...}: { - #xdg.desktopEntries."nvim".name = "Neovim wrapper"; - #xdg.desktopEntries."nvim".exec = "nvim %F"; - #xdg.desktopEntries."nvim".noDisplay = true; - + xdg.desktopEntries = if pkgs.stdenv.isLinux then { + "nvim".name = "Neovim wrapper"; + "nvim".exec = "nvim %F"; + "nvim".noDisplay = true; + } else {}; programs.neovim = { enable = true; viAlias = true;