From 14b1b79d01ab39b9c4bb08258162be7d3da506c2 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 10 Oct 2026 12:25:43 +0200 Subject: tweak(workstation): use neovim instead of vim --- nixos/profiles/workstation/doc.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'nixos/profiles/workstation/doc.nix') diff --git a/nixos/profiles/workstation/doc.nix b/nixos/profiles/workstation/doc.nix index d57318b..2c8ccc0 100644 --- a/nixos/profiles/workstation/doc.nix +++ b/nixos/profiles/workstation/doc.nix @@ -8,7 +8,7 @@ config, pkgs, pkgs-unstable, - ... + nvim, }: let @@ -26,10 +26,23 @@ let cp -f ${pkgs.jujutsu.src}/CHANGELOG.md $out/changelog.md ''; + nvimPluginDocs = pkgs.runCommand "nvim-plugin-docs" { } '' + mkdir -p $out + ${pkgs.lib.concatMapStringsSep "\n" (plugin: '' + pluginOut="$out/${pkgs.lib.getName plugin}" + find ${plugin} -path '*/doc/*.txt' -type f | while IFS= read -r file; do + mkdir -p "$pluginOut" + ln -s "$file" "$pluginOut/$(basename "$file")" + done + '') nvim.plugins} + ''; + symlinks = { nix = "${config.nix.package.src}/doc/manual/source"; git = "${gitDocs}"; jj = "${jjDocs}"; + nvim = "${pkgs.neovim-unwrapped}/share/nvim/runtime/doc"; + nvim-plugins = "${nvimPluginDocs}"; pi = "${pkgs-unstable.pi-coding-agent}/lib/node_modules/pi-monorepo/docs"; }; in -- cgit v1.3.1