blob: 8b50af55cb33d66574c5e52cc79076703098aa1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.ui.illuminate;
in {
config = mkIf cfg.enable {
# vim-illuminate does not have a setup function. It is instead called
# 'configure' and does what you expect from a setup function.
vim.lazy.plugins.vim-illuminate = {
package = "vim-illuminate";
event = [
{
event = "User";
pattern = "LazyFile";
}
];
after = ''
require('illuminate').configure(${toLuaObject cfg.setupOpts})
'';
};
};
}
|