1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

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.
This commit is contained in:
Peter Rice 2021-03-16 20:09:16 -04:00 committed by GitHub
parent 07f6c6481e
commit b42d987ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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