From patchwork Wed Feb 22 20:07:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeerLite X-Patchwork-Id: 47219 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1EDF116A55; Wed, 22 Feb 2023 20:09:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3079216454 for ; Wed, 22 Feb 2023 20:09:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUvQG-0002dW-CL; Wed, 22 Feb 2023 15:09:04 -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 1pUvQE-0002d5-JE for guix-patches@gnu.org; Wed, 22 Feb 2023 15:09:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUvQE-00026B-AH for guix-patches@gnu.org; Wed, 22 Feb 2023 15:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUvQD-0005In-TQ for guix-patches@gnu.org; Wed, 22 Feb 2023 15:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54221] [PATCH 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: Wed, 22 Feb 2023 20:09:01 +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.167709648320308 (code B ref 54221); Wed, 22 Feb 2023 20:09:01 +0000 Received: (at 54221) by debbugs.gnu.org; 22 Feb 2023 20:08:03 +0000 Received: from localhost ([127.0.0.1]:60421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUvPG-0005HK-GM for submit@debbugs.gnu.org; Wed, 22 Feb 2023 15:08:02 -0500 Received: from knopi.disroot.org ([178.21.23.139]:57418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUvPC-0005Gi-Pg for 54221@debbugs.gnu.org; Wed, 22 Feb 2023 15:07:59 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2C8694156D; Wed, 22 Feb 2023 21:07:58 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KKVUx6gPsqCY; Wed, 22 Feb 2023 21:07:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1677096477; bh=42sciHB8kPLxhuuHRVLw1vsrE2MwASno5h/t7oYKK+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bKEYMuVErc8LM/PrZNgg+Anas85kuWrlkYIOiWHt5tIdUd4n5PBtc+xaDaOZRACu8 EgNp+DEubdoVxJ0we6wPI+3JvLAn2WYAZhB6pBylyYf16dlMLF9LtDe9YupGm0SxxQ XMBnmSLrxjnYXpaz/PnNOMp+GHsXMXuU8NCJxFMNQFoKUzZoKc5DROLEMTcwhfEYqu SbVDgme7OuG1W3bew68P3tpSe3oyJ3iCL8VVQZCKnbtbbnV4cMZR3plcgyThq7vqpt eI7eOc3vkNAvHa3OQj7dKLx5kpBuyJGdKLV0/g8w/yoXdmtl21quMZKMNVmCh/xjX0 B8ac9DjlQJx/Q== Date: Wed, 22 Feb 2023 17:07:29 -0300 Message-Id: <0313ee2476aeb999ca0f73609f2eff54865028bc.1677096448.git.seerlite@disroot.org> In-Reply-To: <06694925c423c7e08e49e8384c0009c9f1cd2aa9.1677096448.git.seerlite@disroot.org> References: <06694925c423c7e08e49e8384c0009c9f1cd2aa9.1677096448.git.seerlite@disroot.org> MIME-Version: 1.0 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: , Reply-to: SeerLite X-ACL-Warn: , SeerLite via Guix-patches X-Patchwork-Original-From: SeerLite via Guix-patches via From: SeerLite Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 d4e4f88756..c6bcd096a0 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -751,16 +751,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 vimdir "/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