mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
module/outputs: use mkIf
for wrapRc
Implement the `wrapRc` option using `lib.mkIf` instead of using _real_ `if` branches.
This commit is contained in:
parent
6975ee09f5
commit
bc7a7ad1d6
1 changed files with 1 additions and 1 deletions
|
@ -292,6 +292,6 @@ in
|
||||||
vim.opt.runtimepath:remove(vim.fn.stdpath('data') .. "/site") -- ~/.local/share/nvim/site
|
vim.opt.runtimepath:remove(vim.fn.stdpath('data') .. "/site") -- ~/.local/share/nvim/site
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraPlugins = if config.wrapRc then [ config.filesPlugin ] else [ ];
|
extraPlugins = lib.mkIf config.wrapRc [ config.filesPlugin ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue