modules/diagnostics: fix virtual_lines example

The setting is named `current_line`, not `only_current_line`.

See https://neovim.io/doc/user/diagnostic.html#vim.diagnostic.Opts.VirtualLines
This commit is contained in:
Wyatt Avilla 2025-04-24 16:05:36 -07:00
parent e6e5369535
commit d86fe3df56
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@
description = "The configuration diagnostic options, provided to `vim.diagnostic.config`."; description = "The configuration diagnostic options, provided to `vim.diagnostic.config`.";
example = { example = {
virtual_text = false; virtual_text = false;
virtual_lines.only_current_line = true; virtual_lines.current_line = true;
}; };
}; };
}; };

View file

@ -2,7 +2,7 @@
example = { example = {
diagnostics = { diagnostics = {
virtual_text = false; virtual_text = false;
virtual_lines.only_current_line = true; virtual_lines.current_line = true;
}; };
}; };
} }