mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
Merge branch 'main' into lualine-separators
This commit is contained in:
commit
2be50b2690
1 changed files with 13 additions and 6 deletions
|
@ -57,14 +57,21 @@
|
||||||
signs = mkOption {
|
signs = mkOption {
|
||||||
type = diagnosticType;
|
type = diagnosticType;
|
||||||
default = false;
|
default = false;
|
||||||
example = {
|
example = literalExpression ''
|
||||||
signs.text = {
|
signs.text = lib.generators.mkLuaInline '''
|
||||||
"vim.diagnostic.severity.ERROR" = " ";
|
{
|
||||||
"vim.diagnostic.severity.WARN" = " ";
|
[vim.diagnostic.severity.ERROR] = " ",
|
||||||
};
|
[vim.diagnostic.severity.WARN] = " ",
|
||||||
};
|
}
|
||||||
|
''';
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Use signs for diagnostics. See {command}`:help diagnostic-signs`.
|
Use signs for diagnostics. See {command}`:help diagnostic-signs`.
|
||||||
|
|
||||||
|
:::{.note}
|
||||||
|
The code presented in that example 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