mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins: remove redundant mkRaw
apply
functions
`strLua` now does this coercion internally.
This commit is contained in:
parent
bd6aa476b8
commit
2cda50d530
15 changed files with 0 additions and 26 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue