mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
feat: customizable cursorline option
This commit is contained in:
parent
2cb1e3b110
commit
6e21655c3f
2 changed files with 10 additions and 6 deletions
|
@ -14,7 +14,9 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere ''
|
vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere ''
|
||||||
require('modes').setup()
|
require('modes').setup({
|
||||||
|
set_cursorline = ${boolToString cfg.setCursorline}, -- looks ugly
|
||||||
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
{
|
{lib, ...}:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
with lib;
|
||||||
with builtins; {
|
with builtins; {
|
||||||
options.vim.ui.modes-nvim = {
|
options.vim.ui.modes-nvim = {
|
||||||
enable = mkEnableOption "modes.nvim's prismatic line decorations";
|
enable = mkEnableOption "modes.nvim's prismatic line decorations";
|
||||||
|
|
||||||
|
setCursorline = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Set a colored cursorline on current line";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue