mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-23 06:08:35 +01:00
overlays: Overlay neovim to make nvim.desktop work in thunar
This commit is contained in:
parent
ecbfc509b1
commit
c193b2b2cf
10
overlays/neovim-unwrapped.nix
Normal file
10
overlays/neovim-unwrapped.nix
Normal 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"
|
||||
'';
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user