mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
helpers/vim-plugin/mkVimPlugin: simplify code
This commit is contained in:
parent
75942bc161
commit
9f7c78852f
1 changed files with 1 additions and 4 deletions
|
@ -38,10 +38,7 @@ with lib; {
|
||||||
|
|
||||||
cfg = config.${namespace}.${name};
|
cfg = config.${namespace}.${name};
|
||||||
|
|
||||||
globals =
|
globals = cfg.settings or {};
|
||||||
if (hasAttr "settings" cfg) && (cfg.settings != null)
|
|
||||||
then cfg.settings
|
|
||||||
else {};
|
|
||||||
|
|
||||||
# does this evaluate package?
|
# does this evaluate package?
|
||||||
packageOption =
|
packageOption =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue