From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CKvDH1yB8mP3nAAAbAwnHQ (envelope-from ) for ; Sun, 19 Feb 2023 21:06:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aE3WHlyB8mMpkgAAG6o9tA (envelope-from ) for ; Sun, 19 Feb 2023 21:06:52 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3457A28136 for ; Sun, 19 Feb 2023 21:06:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTpxH-0004wq-Mf; Sun, 19 Feb 2023 15:06:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTpxF-0004wU-Pm for help-guix@gnu.org; Sun, 19 Feb 2023 15:06:37 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTpxD-0003X8-QM for help-guix@gnu.org; Sun, 19 Feb 2023 15:06:37 -0500 Received: by mail-wm1-x334.google.com with SMTP id s7-20020a05600c45c700b003dc52fed235so813748wmo.1 for ; Sun, 19 Feb 2023 12:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=pEx2sz+XaLYoYWIpdXgOSr47VkUNPDIcVJJe1hin4DE=; b=mbD4j+bCqOS7yN9cA6OA6fJus4Qd6bBBzgKN0wSni5vHL6dtGAqXxszabgLK+dhj+1 cl8RkiR5n5w5N9Xe7B7/WZe2H9+rsBbwZoAtG0eqo0k9a7SglMNan9e61wiePwaa3ORc HdCX7THLmxV8x9/f7VK6DNpMvz7ajUoLJZs5rbS0fax86Cv6iuFZU9yoJIUziOthBvTV 2AhpEuUYy0pxH4zRZyW4cuAZ2cLIs3g7G14ZwJYPcqTyoNq9h8OycDRtslaM0P3zmufH mcwIn+k0hdkW3KCVzpXqfxkA69xFBsaYPdP5o/U7545IprA7fDg9/C/d5ma56UxtiF3M CdbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pEx2sz+XaLYoYWIpdXgOSr47VkUNPDIcVJJe1hin4DE=; b=BsACLCMv4y9bjh+A3PHEnzL6MhOZYXqsZ/rBwpfDXbYEC6hnoDz0u7kK2/HUdi9Oyq pp7pkshvakeorEJUnUZAKexFyFaa7YuvknoLjMW+tj+QIpEsmMzMdYP8RPUuQasJv+vf UwWIWddbO6TuKT+iKDXSiAxFqQl1AounkeNw3xChHVHDQQkPkz4EPL3WXiwqxEthmcl8 ckAK+xn/ZtC7+a57wqJuPOzgTiUVj4L739VX6HwMd8rkGPWOCt8usVDMLAL5l9+dXqmm 2Fw/UBBK0nJ1CMydsqfue0Pb9KVQX+1vBnb9RVDvQhMyxlTVjLhafBGRVvHfF8tEKgJB XJRA== X-Gm-Message-State: AO0yUKV1G4ae1kH2J+0bRiXwI/TJdCemfD/sqgYGBEKKZgqtVI38mfU1 KhQusmaOPEHRP2U4LsC7LBw= X-Google-Smtp-Source: AK7set9RmIj3jUqB5qMFebhm/lWiasUvCnR+qAwobzkK0s8ImtqznBUS4uZpZJ5NTjYXbngagW7aMg== X-Received: by 2002:a05:600c:164a:b0:3e2:20c7:6556 with SMTP id o10-20020a05600c164a00b003e220c76556mr6107316wmn.35.1676837194179; Sun, 19 Feb 2023 12:06:34 -0800 (PST) Received: from localhost ([141.226.15.115]) by smtp.gmail.com with ESMTPSA id p8-20020a1c7408000000b003dfee43863fsm7211259wmc.26.2023.02.19.12.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 12:06:33 -0800 (PST) Date: Sun, 19 Feb 2023 22:06:10 +0200 From: Efraim Flashner To: nils@promisedlandt.de Cc: "help-guix@gnu.org" Subject: Re: Generating helptags for vim plugins Message-ID: Mail-Followup-To: nils@promisedlandt.de, "help-guix@gnu.org" References: <1973776289.362054.1676801397268@office.mailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6zdBuKcSwKMKYsXh" Content-Disposition: inline In-Reply-To: <1973776289.362054.1676801397268@office.mailbox.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676837212; a=rsa-sha256; cv=none; b=nYaj/RYj1eHw3njLBaceV7QqH51RlhaI3GTHVrLmWgykQrQAMyzY00IH/ZokDdaxRt+FD4 50jiiNDJ+kXvwswIAOBcsCGrO1Bgor/+nKZaKk3IomAqfrv0pKTj4/OOhqo3OqWIBwnsic l0FEnyoPNbHrh2o8g8nPvWoyaN+Dp+mJkrXByfIZiVOVEP2i77AR8TigHpPRb5QsXwRAYo T30/gfBWEToZipKOwTVw2yEa5I+OE6MrlO3DqhfZaFx5pSf7DxcIQB6ydsV4bwl5NCYPGd b911k89OIcmTfVb7GezEgPNZziUAl01r/kTNf1faOj2XHPYuMU0yPH2xNROxdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mbD4j+bC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676837212; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pEx2sz+XaLYoYWIpdXgOSr47VkUNPDIcVJJe1hin4DE=; b=MnUpJOGaNwXCdw+cmfb/kxn0RwJO75/gnBOyU1ScL88svH2I98aD9hDPgMwuXqBUk8eqSm Xo9KSH2gzlEKYXahZOFk6k/hgaCl37t1IdlrlQf7gK4Dcik3vo5824u/TWUsPhDguHRHFZ JlSZFJslmZ/0YLc1J0x7s8rLDrX8eEdlvoZkeAtRbjDW42BHYv+/mJ1YAM+sH1sqiJGQGt atB5q6GX8eFslJxw+i2ZtOuI1UXoQanKFOpL0agHPpdmNuV1ecSKhBir81D0621uMXwPDU sIA6mxi4akET9ZLk7eWcWeCBN1nMJHj17SuLdLSXkb999XTe6zEIQjoKbvHWOQ== X-Spam-Score: -3.54 X-Migadu-Queue-Id: 3457A28136 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mbD4j+bC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.54 X-TUID: kfxLmWJwHzgc --6zdBuKcSwKMKYsXh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 19, 2023 at 11:09:57AM +0100, nils@promisedlandt.de wrote: > Hello everyone, >=20 > I'm trying to switch my home environment to guix home (from Chef). > As a first step, I'm writing package definitions for the various vim plug= ins I use. > I followed the simple plugins in gnu/packages/vim, using git-fetch + copy= -build-system. This worked fine, but I noticed that there is no code to gen= erate the helptags, meaning the plugin documentations don't show up in vim = when using :help. Having the documentations available is important to me!= =20 >=20 > My solution was to write a vimplugin-build-system. It uses copy-build-sys= tem for most things, but generates the helptags for the plugin as an additi= onal step after installation. Technically that works, in that the helptags = for the plugin are generated and available in vim. Sadly the concept was wr= ong, because the helptags file is always named "tags" and needs to be in th= e same directory as the help file. This means installing multiple plugins h= as the doc files for all plugins symlinked in ~/.guix-home/profile/share/vi= m/vimfiles/doc , and then the "tags" file of (I'm guessing) the last plugin= , meaning only that last plugin documentation is available in vim. >=20 > Solutions I could think of: >=20 > 1) Run the helptags generation after *all* plugins are installed > 2) Do not install all plugins to ~/.guix-home/profile/share/vim/vimfiles = but rather keep them in one subfolder per plugin (which is how the built-in= vim package management works, and most or all vim plugin managers).=20 >=20 > How could 1) be implemented? I could do 2) rather easily I think, but it = would contributing the plugin packages difficult, since it needs changes in= the gnu/packages/aux-files/guix.vim to add those directories to the vim ru= ntime path. >=20 > Has anyone already spent some time on this? It looks to me like an issue = that everyone would run into if they use the already packaged plugins in gn= u/packages/vim. There are two possibilities that I can see at this point: 1: There's a patch to install all the vim plugins into their own prefix and use vim's :packadd to actually load the packages when they're wanted. I feel like this is probably the technically correct way to do it. 2: Add a profile hook to build all the help tags as part of building the profile, similar to the emacs sub-directories or the font cache or the mime database or other things. This would introduce the least amount of change to users since they wouldn't need to start doing :packadd and the help files would just show up. As someone who actively wants the help files, I'm curious which you'd prefer. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --6zdBuKcSwKMKYsXh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmPygTEACgkQQarn3Mo9 g1E42g//UVnqDngVqLccTvmEcaXQBTQcRfLLK5SKssURByq339bAFZdIBWdkUnsw uUTTiP+g8gO4KLff6/RVwWZnNtXzpw3Bm6bpup+sOGqYUUgv3rscN0dv6EyaJWsP U/4KrPunx6VLonGtYyx0kciXxiBIeFQdIMTg5i/iwYU9SiN4z0B27fZLvhlRlyao WQlRqDN1E+/Ww0VRdTe/ZtHTgH1QxUq4ikIZkoY7wCd4zGX325Zqtjsmt2ybxInO 7Ypgsu8JQXiqisQuA1wrJfyO7C/FMxL974iGHZnwUgi6WzV86bkzLvRPqov8aKCT oiVCBmq565Py4nMSEU1LtgtVPySl4/BtvwoNXeTANTaJlzi8K1y+xi2BFVCcXRGF U/YIcUBh4TrlyYX/U48hvvn11OLCizosWIINGafXYJr1k12GEWZSqS9VwoTwuOgY My2SDjNElr/QRX0BuCQ8aKlDsc2evffNOWJRtlBQpNcOoffQv0sqI5bXoAIoG9n5 +MTI25x6LatogTOiD5H0l83/Mlls+Iu1iz78y3xdMT/wK1eERl7enYYzKIiCrG4c 8QoRGqT2pnQuvJPkkykWJKeUQIh9obnBKm55Ynj5GN6LCQtVERgdFCiEn+bi7EKn OLbbvzyAcqka1xQC4I2/9q9DFpDtfCnFB7LTOfqQs5GToG6w3FY= =0Lla -----END PGP SIGNATURE----- --6zdBuKcSwKMKYsXh--