nix-config/overlays/neovim-unwrapped.nix

14 lines
396 B
Nix
Raw Normal View History

final: prev: {
neovim-unwrapped = prev.neovim-unwrapped.overrideAttrs (oldAttrs: {
2024-08-03 20:32:56 +02:00
postInstall =
(oldAttrs.postInstall or "")
# bash
+ ''
substituteInPlace $out/share/applications/nvim.desktop \
--replace "TryExec=nvim" "" \
--replace "Terminal=true" "Terminal=false" \
--replace "Exec=nvim %F" "Exec=kitty nvim %F"
'';
});
}