From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KN6WCFSahWLDbwEAbAwnHQ (envelope-from ) for ; Thu, 19 May 2022 03:16:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ALuWCFSahWKZtAAA9RJhRA (envelope-from ) for ; Thu, 19 May 2022 03:16:04 +0200 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 C9CC9AEC2 for ; Thu, 19 May 2022 03:16:03 +0200 (CEST) Received: from localhost ([::1]:52310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrUln-0007ZX-1n for larch@yhetil.org; Wed, 18 May 2022 21:16:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrUkp-0007ON-8i for guix-patches@gnu.org; Wed, 18 May 2022 21:15:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrUko-0005qc-Vs for guix-patches@gnu.org; Wed, 18 May 2022 21:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrUko-0002QI-Ra for guix-patches@gnu.org; Wed, 18 May 2022 21:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54221] [PATCH v5 2/2] gnu: neovim: Search and use installed plugins, like vim. Resent-From: SeerLite Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 May 2022 01:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54221 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54221@debbugs.gnu.org Cc: SeerLite Received: via spool by 54221-submit@debbugs.gnu.org id=B54221.16529228609241 (code B ref 54221); Thu, 19 May 2022 01:15:02 +0000 Received: (at 54221) by debbugs.gnu.org; 19 May 2022 01:14:20 +0000 Received: from localhost ([127.0.0.1]:33994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrUk7-0002Oz-Tj for submit@debbugs.gnu.org; Wed, 18 May 2022 21:14:20 -0400 Received: from mx.nixnet.email ([94.16.121.167]:40436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrUk0-0002Og-W6 for 54221@debbugs.gnu.org; Wed, 18 May 2022 21:14:18 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mx.nixnet.email (Postfix) with ESMTPSA id 7B0BA200882; Wed, 18 May 2022 21:14:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nixnet.email; s=202002021149; t=1652922851; h=from:from:reply-to:subject:subject:to:to:cc:cc; bh=8N82Y01C55fyFWEkRpIdrQckCUR+4hsu2r8JRX+0kFw=; b=ZhRUbf+JrMuexHMeu7VEKAEQy54UePDZdUpKXC7UYI9ZGoxFrR0a/DAZ8gXPqoIRjUOUMQ /b65ljvZ24KaUOyJ0YD2XNtgKvgi6zPCd8QU15wf/ml9Gwca7e7bM/gyNUldVRTov1Dyej PPG/E9m17IvtReJq47fKm+dP7gdDnaA= Date: Wed, 18 May 2022 21:14:05 -0400 Message-Id: <82f09ad897560b759cd3b86ef7a2d3449fd0100f.1652922844.git.seerlite@nixnet.email> X-Mailer: git-send-email 2.36.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: SeerLite X-ACL-Warn: , SeerLite via Guix-patches From: SeerLite via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652922963; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8N82Y01C55fyFWEkRpIdrQckCUR+4hsu2r8JRX+0kFw=; b=DkI4LSfTEYH0ylEeOm96vUBZ0nbM29q0Rn2piWdglI5zkKckjIUbyjN7sb6eHkum8SZesa tyx8n6r/Avi7O5e4oE6uJ1GtZ/hwRCn/FiiO68fgSRWGA7lGJJ1FDJ5dCwRz7sDz++TyAH 1ZkJZLodFz8CdHbP59cgauazB6plMg8ca+XZX5qXM8VblhJJ08zSAnnL7EYm8BTazKooDU EVCFxwBzEYCfuUGMHXYVBj+D0bQOO3k5Sw4Q3kpL5zDRXVa30qhGpUn0VYvjY0WsP7eOhO jKLN5fEFFFcm4zXxClF2wjOFXx3t01o3cFQXBYHKiSDDNLAxiBwDhNDBPMTJ/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652922963; a=rsa-sha256; cv=none; b=XEuD5HpqFWR8kQVk38cwazy2Zo81u2tl9mv00AtFK2Uxe/UzxgOdAbUW5BAJ4h+/e9wwrO XcRIZ/dCdBTnfo0XxRxby9w4Y3q5HDnE36laypVElqmSKUE/oJkmfoHs8AEul9dzSoKQFm QUzmDgPLmR/RF/lQIyFASom3Jzgm6YRiolpltjzLy6mxJKvyGYD2OW4m6FjaUm1KCylWJ/ 2sHE3Xs6VtNJ2JmlQpZ6aebrMRzDMDpKJ8E1i5oE2mL2EDGf6rFEJNevq/cIIL8NWvEb9p OvJvjRQmjXohsZmihwzuyBzw4FO0snlKL+CzFDUMzqbfTyXYImiQDJE+fC5gmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nixnet.email header.s=202002021149 header.b=ZhRUbf+J; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nixnet.email header.s=202002021149 header.b=ZhRUbf+J; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C9CC9AEC2 X-Spam-Score: -3.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: fas/tjXaYz14 * gnu/packages/vim.scm (neovim)[phases]: Add 'install-guix.vim phase and remove trailing #t's. [native-search-paths]: Add search path specification for 'GUIX_VIMRUNTIME'. --- gnu/packages/vim.scm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 011521babd..14e6f86544 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -716,16 +716,25 @@ (define-public neovim (setenv "LUA_PATH" (string-join (map lua-path-spec lua-inputs) ";")) (setenv "LUA_CPATH" - (string-join (map lua-cpath-spec lua-inputs) ";")) - #t))) + (string-join (map lua-cpath-spec lua-inputs) ";"))))) (add-after 'unpack 'prevent-embedding-gcc-store-path (lambda _ ;; nvim remembers its build options, including the compiler with ;; its complete path. This adds gcc to the closure of nvim, which ;; doubles its size. We remove the refirence here. (substitute* "cmake/GetCompileFlags.cmake" - (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")) - #t))))) + (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")))) + (add-after 'install 'install-guix.vim + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((vimdir (string-append (assoc-ref outputs "out") "/share/nvim")) + (vimrc #$(local-file (search-auxiliary-file "guix.vim")))) + (mkdir-p vimdir) + (copy-file vimrc (string-append nvimdir "/sysinit.vim")))))))) + (native-search-paths + (list (search-path-specification + (variable "GUIX_VIMRUNTIME") + (separator ",") + (files (list "share/vim/vimfiles"))))) (inputs (list libuv-for-luv msgpack libtermkey -- 2.36.0