programs/editors: add basedpyright-fix for neovim

This commit is contained in:
Anthony Rodriguez 2025-02-11 21:27:28 +01:00
parent 8cdb458c0c
commit f5d16c5e87
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA
3 changed files with 17 additions and 1 deletions

View file

@ -7,7 +7,7 @@
inherit (config.local.systemVars) username;
in {
imports = [
./neovim.nix
./neovim
];
config = mkIf config.local.profiles.desktop.enable {

View file

@ -0,0 +1,15 @@
# thanks https://gitlab.com/fazzi/nixohess/-/blob/3e0544761d7f0361e7a8ac7b15714515e7fd5e7c/overlays/basedpyright-fix.nix
_: {
nixpkgs.overlays = [
(_: prev: {
basedpyright = prev.basedpyright.overrideAttrs (old: {
postInstall =
old.postInstall
+ ''
# Remove dangling symlinks created during installation (remove -delete to just see the files, or -print '%l\n' to see the target
find -L $out -type l -print -delete
'';
});
})
];
}

View file

@ -242,6 +242,7 @@
};
};
in {
imports = [./basedpyright-fix.nix];
config = lib.mkIf config.local.profiles.desktop.enable {
hjem.users.${username} = {
packages = [customNeovim.neovim];