overlays: Overlay neovim to make nvim.desktop work in thunar

This commit is contained in:
Donovan Glover 2024-05-13 09:20:58 -04:00
parent ecbfc509b1
commit c193b2b2cf
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -0,0 +1,10 @@
final: prev: {
neovim-unwrapped = prev.neovim-unwrapped.overrideAttrs (oldAttrs: {
postInstall = (oldAttrs.postInstall or "") + ''
substituteInPlace $out/share/applications/nvim.desktop \
--replace "TryExec=nvim" "" \
--replace "Terminal=true" "Terminal=false" \
--replace "Exec=nvim %F" "Exec=kitty nvim %F"
'';
});
}