feat: customizable cursorline option

This commit is contained in:
NotAShelf 2023-06-06 01:49:38 +03:00
parent 2cb1e3b110
commit 6e21655c3f
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 10 additions and 6 deletions

View file

@ -14,7 +14,9 @@ in {
];
vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere ''
require('modes').setup()
require('modes').setup({
set_cursorline = ${boolToString cfg.setCursorline}, -- looks ugly
})
'';
};
}

View file

@ -1,11 +1,13 @@
{
config,
lib,
...
}:
{lib, ...}:
with lib;
with builtins; {
options.vim.ui.modes-nvim = {
enable = mkEnableOption "modes.nvim's prismatic line decorations";
setCursorline = mkOption {
type = types.bool;
description = "Set a colored cursorline on current line";
default = false;
};
};
}