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

@ -151,7 +151,6 @@ helpers.neovim-plugin.mkNeovimPlugin {
});
default = null;
example = "require('noice.util.spinners').spinners.circleFull";
apply = v: if isString v then helpers.mkRaw v else v;
description = "Spinner for pinned views that are loading.";
pluginDefault = {
frames = defaultFrames;
@ -182,7 +181,6 @@ helpers.neovim-plugin.mkNeovimPlugin {
# Hence, we convert the string to raw lua in `apply`.
keys = helpers.defaultNullOpts.mkAttrsOf' {
type = with lib.types; either strLuaFn (enum [ false ]);
apply = x: if x == null then null else mapAttrs (_: v: if isString v then helpers.mkRaw v else v) x;
description = ''
Buffer-local keymaps to be added to edgebar buffers.
Existing buffer-local keymaps will never be overridden.