From 00be4cf4e82c6aa00ff5e2c73754ebed1823e4e3 Mon Sep 17 00:00:00 2001 From: Ben Mayer Date: Sun, 3 Nov 2024 17:06:58 +0100 Subject: [PATCH] Add override for typst-preview-nvim --- pkgs/applications/editors/vim/plugins/overrides.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 98a2eac494c3..48a50fdc4e4e 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -134,6 +134,9 @@ # must be lua51Packages luajitPackages, aider-chat, + # typst-preview dependencies + tinymist, + websocat, }: self: super: let @@ -2729,6 +2732,16 @@ in --replace "'zoxide_executable', 'zoxide'" "'zoxide_executable', '${zoxide}/bin/zoxide'" ''; }; + + typst-preview-nvim = super.typst-preview-nvim.overrideAttrs { + postPatch = '' + substituteInPlace lua/typst-preview/config.lua \ + --replace-fail "['tinymist'] = nil," "tinymist = '${lib.getExe tinymist}'," \ + --replace-fail "['websocat'] = nil," "websocat = '${lib.getExe websocat}'," + ''; + + nvimRequireCheck = "typst-preview"; + }; } // ( let