plugins: remove redundant mkRaw apply functions

`strLua` now does this coercion internally.
This commit is contained in:
Matt Sturgeon 2024-09-29 15:13:49 +01:00
parent bd6aa476b8
commit 2cda50d530
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
15 changed files with 0 additions and 26 deletions

View file

@ -43,14 +43,6 @@ with lib;
cmp mappings declaration.
See `:h cmp-mapping` for more information.
'';
apply =
v:
# Handle the raw case first
if lib.types.isRawType v then
v
# When v is an attrs **but not {__raw = ...}**
else
mapAttrs (_: helpers.mkRaw) v;
example = {
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
@ -98,7 +90,6 @@ with lib;
end
```
'';
apply = helpers.mkRaw;
example = ''
function(args)
require('luasnip').lsp_expand(args.body)
@ -210,7 +201,6 @@ with lib;
comparators = mkOption {
type = with lib.types; nullOr (listOf strLuaFn);
apply = v: helpers.ifNonNull' v (map helpers.mkRaw v);
default = null;
description = ''
The function to customize the sorting behavior.

View file

@ -162,7 +162,6 @@ in
action = mkOption {
type = lib.types.strLuaFn;
apply = helpers.mkRaw;
description = ''
The parameters to the action function are the different sources (currently `git`,
`gitlab` and `github`), the completion callback, the trigger character, the