plugins/barbar: switch from mkDesc to pluginDefaultText

This commit is contained in:
Matt Sturgeon 2024-06-11 02:31:02 +01:00
parent 44cd01b253
commit 6e979dbe94
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -314,7 +314,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
Use `false` to disable it. Use `false` to disable it.
''; '';
diagnostics = mkOption { diagnostics = mkOption rec {
type = types.submodule { type = types.submodule {
freeformType = with types; attrsOf anything; freeformType = with types; attrsOf anything;
options = options =
@ -338,9 +338,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
}; };
apply = helpers.toRawKeys; apply = helpers.toRawKeys;
default = { }; default = { };
description = defaultText = helpers.pluginDefaultText {
helpers.defaultNullOpts.mkDesc inherit default;
{ pluginDefault = {
"vim.diagnostic.severity.ERROR" = { "vim.diagnostic.severity.ERROR" = {
enabled = false; enabled = false;
icon = " "; icon = " ";
@ -357,8 +357,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
enabled = false; enabled = false;
icon = " "; icon = " ";
}; };
} };
'' };
description = ''
Set the icon for each diagnostic level. Set the icon for each diagnostic level.
The keys will be automatically translated to raw lua: The keys will be automatically translated to raw lua: