mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
helpers/vim-plugin/mkVimPlugin: simplify code
This commit is contained in:
committed by
Gaétan Lepage
parent
75942bc161
commit
9f7c78852f
+1
-4
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user