handle xdg on darwin

This commit is contained in:
Adithya 2023-06-10 13:37:52 +05:30
parent 74eacd6f45
commit 6bd6bf2141
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -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;