mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/barbar: switch from mkDesc
to pluginDefaultText
This commit is contained in:
parent
44cd01b253
commit
6e979dbe94
1 changed files with 40 additions and 39 deletions
|
@ -314,7 +314,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
Use `false` to disable it.
|
||||
'';
|
||||
|
||||
diagnostics = mkOption {
|
||||
diagnostics = mkOption rec {
|
||||
type = types.submodule {
|
||||
freeformType = with types; attrsOf anything;
|
||||
options =
|
||||
|
@ -338,9 +338,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
};
|
||||
apply = helpers.toRawKeys;
|
||||
default = { };
|
||||
description =
|
||||
helpers.defaultNullOpts.mkDesc
|
||||
{
|
||||
defaultText = helpers.pluginDefaultText {
|
||||
inherit default;
|
||||
pluginDefault = {
|
||||
"vim.diagnostic.severity.ERROR" = {
|
||||
enabled = false;
|
||||
icon = " ";
|
||||
|
@ -357,8 +357,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
enabled = false;
|
||||
icon = " ";
|
||||
};
|
||||
}
|
||||
''
|
||||
};
|
||||
};
|
||||
description = ''
|
||||
Set the icon for each diagnostic level.
|
||||
|
||||
The keys will be automatically translated to raw lua:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue