mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 18:25:57 +01:00
nvim-cursorline: fix docs
This commit is contained in:
parent
ccdc229eee
commit
a8491b5aa1
1 changed files with 15 additions and 0 deletions
|
@ -14,17 +14,25 @@ in {
|
|||
|
||||
options.vim.visuals.nvim-cursorline = {
|
||||
enable = mkEnableOption "cursor word and line highlighting [nvim-cursorline]";
|
||||
|
||||
# Upstream has **zero** documentation whatsoever. I'm making wild assumptions
|
||||
# on what goes into description based don the source code. I'm sorry. Not.
|
||||
setupOpts = mkPluginSetupOption "nvim-cursorline" {
|
||||
cursorline = {
|
||||
enable = mkEnableOption "cursor line highlighting";
|
||||
timeout = mkOption {
|
||||
type = int;
|
||||
default = 1000;
|
||||
description = "Cursorline timeout";
|
||||
};
|
||||
|
||||
number = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If true, `vim.wo.cursorlineopt` will be set to "number"
|
||||
when the trigger conditions are met.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -33,16 +41,23 @@ in {
|
|||
timeout = mkOption {
|
||||
type = int;
|
||||
default = 1000;
|
||||
description = "Cursorword timeout";
|
||||
};
|
||||
|
||||
min_length = mkOption {
|
||||
type = int;
|
||||
default = 3;
|
||||
description = ''
|
||||
The min_length option defines the minimum number of characters
|
||||
a word must have to be highlighted as a "cursor word." Any word
|
||||
shorter than this value will be ignored and not highlighted.
|
||||
'';
|
||||
};
|
||||
|
||||
hl.underline = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Whether to underline matching cursorword";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue