programs/editors: add basedpyright-fix for neovim
This commit is contained in:
parent
8cdb458c0c
commit
f5d16c5e87
3 changed files with 17 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
inherit (config.local.systemVars) username;
|
||||
in {
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./neovim
|
||||
];
|
||||
|
||||
config = mkIf config.local.profiles.desktop.enable {
|
||||
|
|
15
modules/programs/editors/neovim/basedpyright-fix.nix
Normal file
15
modules/programs/editors/neovim/basedpyright-fix.nix
Normal 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
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
|
@ -242,6 +242,7 @@
|
|||
};
|
||||
};
|
||||
in {
|
||||
imports = [./basedpyright-fix.nix];
|
||||
config = lib.mkIf config.local.profiles.desktop.enable {
|
||||
hjem.users.${username} = {
|
||||
packages = [customNeovim.neovim];
|
Loading…
Add table
Reference in a new issue