Merge branch 'main' into lualine-separators

This commit is contained in:
Ching Pei Yang 2025-07-07 11:45:32 +02:00 committed by GitHub
commit 2be50b2690
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
:::
''; '';
}; };