From e61c2faf922df0f00be08e71610d3ad8118426af Mon Sep 17 00:00:00 2001 From: alfarel Date: Sat, 20 Dec 2025 07:31:12 +0000 Subject: [PATCH] notes/obsidian-nvim: fix checkhealth by building from pin manually --- modules/wrapper/build/config.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/wrapper/build/config.nix b/modules/wrapper/build/config.nix index 68b2c00d..ef1c2893 100644 --- a/modules/wrapper/build/config.nix +++ b/modules/wrapper/build/config.nix @@ -46,6 +46,21 @@ # Disable failing require check hook checks doCheck = false; }; + # Checkhealth fails to get the plugin's commit and therefore to + # show the rest of the useful diagnostics if not built like this. + obsidian-nvim = pkgs.vimUtils.buildVimPlugin { + # If set to `"obsidian-nvim"`, this breaks like `buildPlug` and `noBuildPlug`. + name = "obsidian.nvim"; + src = getPin "obsidian-nvim"; + nvimSkipModules = [ + "minimal" + # require picker plugins + "obsidian.picker._telescope" + "obsidian.picker._snacks" + "obsidian.picker._fzf" + "obsidian.picker._mini" + ]; + }; # Get plugins built from source from self.packages # If adding a new plugin to be built from source, it must also be inherited