plugins: swith to the new behaviour of mkRaw

This commit is contained in:
Gaetan Lepage 2023-11-22 12:00:32 +01:00 committed by Gaétan Lepage
parent 8cf2d943d2
commit 19f39c3b1b
32 changed files with 66 additions and 127 deletions

View file

@ -159,7 +159,7 @@ in {
setupOptions = with cfg;
{
inlay_hints = with inlayHints; {
inline = helpers.ifNonNull' inline (helpers.mkRaw inline);
inline = helpers.mkRaw inline;
only_current_line = onlyCurrentLine;
only_current_line_autocmd = onlyCurrentLineAutocmd;
show_parameter_hints = showParameterHints;

View file

@ -302,9 +302,7 @@ in {
enable
height
;
on_lines =
helpers.ifNonNull' onLines
(helpers.mkRaw onLines);
on_lines = helpers.mkRaw onLines;
};
inherit lsp3;
}

View file

@ -86,7 +86,7 @@ with lib; let
example = ''
require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
'';
apply = s: helpers.ifNonNull' s (helpers.mkRaw s);
apply = helpers.mkRaw;
mandatory = true;
};
};

View file

@ -144,9 +144,7 @@ in {
helpers.ifNonNull' cfg.executor
(helpers.mkRaw "require(${rust-tools.executors}).${cfg.executor}");
on_initialized =
helpers.ifNonNull' cfg.onInitialized
(helpers.mkRaw cfg.onInitialized);
on_initialized = helpers.mkRaw cfg.onInitialized;
reload_workspace_from_cargo_toml = cfg.reloadWorkspaceFromCargoToml;
inlay_hints = with cfg.inlayHints;

View file

@ -86,9 +86,7 @@ in {
separator
zindex
;
on_attach =
helpers.ifNonNull' onAttach
(helpers.mkRaw onAttach);
on_attach = helpers.mkRaw onAttach;
}
// cfg.extraOptions;
in