mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 20:35:59 +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 = {
|
options.vim.visuals.nvim-cursorline = {
|
||||||
enable = mkEnableOption "cursor word and line highlighting [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" {
|
setupOpts = mkPluginSetupOption "nvim-cursorline" {
|
||||||
cursorline = {
|
cursorline = {
|
||||||
enable = mkEnableOption "cursor line highlighting";
|
enable = mkEnableOption "cursor line highlighting";
|
||||||
timeout = mkOption {
|
timeout = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
default = 1000;
|
default = 1000;
|
||||||
|
description = "Cursorline timeout";
|
||||||
};
|
};
|
||||||
|
|
||||||
number = mkOption {
|
number = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
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 {
|
timeout = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
default = 1000;
|
default = 1000;
|
||||||
|
description = "Cursorword timeout";
|
||||||
};
|
};
|
||||||
|
|
||||||
min_length = mkOption {
|
min_length = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
default = 3;
|
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 {
|
hl.underline = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
description = "Whether to underline matching cursorword";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue