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:
parent
07f6c6481e
commit
b42d987ad9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue