Skip to content

Commit d86fe3d

Browse files
committed
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
1 parent e6e5369 commit d86fe3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/diagnostics.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
description = "The configuration diagnostic options, provided to `vim.diagnostic.config`.";
1313
example = {
1414
virtual_text = false;
15-
virtual_lines.only_current_line = true;
15+
virtual_lines.current_line = true;
1616
};
1717
};
1818
};

tests/test-sources/modules/diagnostics.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
example = {
33
diagnostics = {
44
virtual_text = false;
5-
virtual_lines.only_current_line = true;
5+
virtual_lines.current_line = true;
66
};
77
};
88
}

0 commit comments

Comments
 (0)