mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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};
|
||||
|
||||
globals =
|
||||
if (hasAttr "settings" cfg) && (cfg.settings != null)
|
||||
then cfg.settings
|
||||
else {};
|
||||
globals = cfg.settings or {};
|
||||
|
||||
# does this evaluate package?
|
||||
packageOption =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue