feat: vim-illuminate

This commit is contained in:
NotAShelf 2023-06-06 03:05:05 +03:00
commit c20456e3a1
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
8 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.ui.illuminate;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["vim-illuminate"];
vim.luaConfigRC.vim-illuminate =
nvim.dag.entryAnywhere ''
'';
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./config.nix
./illuminate.nix
];
}

View file

@ -0,0 +1,11 @@
{
config,
lib,
...
}:
with lib;
with builtins; {
options.vim.ui.illuminate = {
enable = mkEnableOption "vim-illuminate: automatically highlight other uses of the word under the cursor";
};
}