Compare commits

...

4 commits

Author SHA1 Message Date
Ching Pei Yang
f6500bbd05 add TODO 2024-08-04 02:27:59 +02:00
Ching Pei Yang
432cb9c87b lib: allow luaInline in lz.n map action 2024-08-04 02:24:10 +02:00
Ching Pei Yang
9faddddf84 flake: update lzn-auto-require 2024-08-04 02:23:30 +02:00
Ching Pei Yang
682779b0f3 fixup! wrapper: use lzn-auto-require loader 2024-08-03 22:46:06 +02:00
3 changed files with 7 additions and 6 deletions

View file

@ -862,11 +862,11 @@
"plugin-lzn-auto-require": {
"flake": false,
"locked": {
"lastModified": 1722716302,
"narHash": "sha256-YehBjQ4m3i0yEnts7HhWW78N6g40hblfcl94d7l9aN4=",
"lastModified": 1722727896,
"narHash": "sha256-h7Dx3zBkUYamQY6lcuQrwAMgBpPqskLnA6WsbefHzMU=",
"owner": "horriblename",
"repo": "lzn-auto-require",
"rev": "57567c9db26a3b5b143ae91f35143c34706e8881",
"rev": "c6b47e148a1ff9709e802f68c2c8b558a9a8de9b",
"type": "github"
},
"original": {

View file

@ -94,9 +94,10 @@
};
rhs = mkOption {
type = nullOr str;
type = nullOr (either str luaInline);
default = null;
description = "Action to trigger";
# FIXME: use a separate flag to indicate lua instead of luaInline
description = "Action to trigger. luaInline code will be wrapped in a function.";
};
mode = mkOption {

View file

@ -63,7 +63,7 @@
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
in {
config.vim = mkIf cfg.enable {
startPlugins = ["lz-n"];
startPlugins = ["lz-n" "lzn-auto-require"];
optPlugins = mapAttrsToList (_: plugin: plugin.package) cfg.plugins;