mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
parent
f9ee813a23
commit
6ec28999cb
1 changed files with 13 additions and 6 deletions
|
@ -57,14 +57,21 @@
|
|||
signs = mkOption {
|
||||
type = diagnosticType;
|
||||
default = false;
|
||||
example = {
|
||||
signs.text = {
|
||||
"vim.diagnostic.severity.ERROR" = " ";
|
||||
"vim.diagnostic.severity.WARN" = " ";
|
||||
};
|
||||
};
|
||||
example = literalExpression ''
|
||||
signs.text = lib.generators.mkLuaInline '''
|
||||
{
|
||||
[vim.diagnostic.severity.ERROR] = " ",
|
||||
[vim.diagnostic.severity.WARN] = " ",
|
||||
}
|
||||
''';
|
||||
'';
|
||||
description = ''
|
||||
Use signs for diagnostics. See {command}`:help diagnostic-signs`.
|
||||
|
||||
:::{.note}
|
||||
The code presented in that help section uses lua expressions as object keys which
|
||||
only translate well if you use `lib.generators.mkLuaInline` as in the example.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue