From b42d987ad917edf315bf8d0d6350498d357c5d41 Mon Sep 17 00:00:00 2001 From: Peter Rice Date: Tue, 16 Mar 2021 20:09:16 -0400 Subject: [PATCH] neovim: fall back to plugin name if no pname (#1864) When installing plugins, Home Manager expects plugins (packages) to have a `pname` attribute. This is not always the case, so fallback to `name` if `pname` is unset. --- modules/programs/neovim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 4390654b2..e5b2c0c51 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -44,7 +44,7 @@ let # A function to get the configuration string (if any) from an element of 'plugins' pluginConfig = p: if p ? plugin && (p.config or "") != "" then '' - " ${p.plugin.pname} {{{ + " ${p.plugin.pname or p.plugin.name} {{{ ${p.config} " }}} '' else