mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
misc: allow null in extraPackages
This commit is contained in:
parent
c826d146c6
commit
f2f97d844b
13 changed files with 22 additions and 39 deletions
|
@ -134,10 +134,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
extraPlugins = [cfg.package];
|
||||
|
||||
extraPackages =
|
||||
optional
|
||||
(cfg.clipboardPackage != null)
|
||||
cfg.clipboardPackage;
|
||||
extraPackages = [cfg.clipboardPackage];
|
||||
|
||||
extraConfigLua = let
|
||||
setupOptions =
|
||||
|
|
|
@ -271,7 +271,7 @@ in {
|
|||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [cfg.package];
|
||||
extraPackages = optional (cfg.ripgrepPackage != null) cfg.ripgrepPackage;
|
||||
extraPackages = [cfg.ripgrepPackage];
|
||||
extraConfigLua = ''
|
||||
require("todo-comments").setup${helpers.toLuaObject setupOptions}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue