mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
plugins: swith to the new behaviour of mkRaw
This commit is contained in:
parent
8cf2d943d2
commit
19f39c3b1b
32 changed files with 66 additions and 127 deletions
|
@ -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;
|
||||
|
|
|
@ -302,9 +302,7 @@ in {
|
|||
enable
|
||||
height
|
||||
;
|
||||
on_lines =
|
||||
helpers.ifNonNull' onLines
|
||||
(helpers.mkRaw onLines);
|
||||
on_lines = helpers.mkRaw onLines;
|
||||
};
|
||||
inherit lsp3;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -86,9 +86,7 @@ in {
|
|||
separator
|
||||
zindex
|
||||
;
|
||||
on_attach =
|
||||
helpers.ifNonNull' onAttach
|
||||
(helpers.mkRaw onAttach);
|
||||
on_attach = helpers.mkRaw onAttach;
|
||||
}
|
||||
// cfg.extraOptions;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue