mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
Compare commits
4 commits
8bddf37b43
...
f6500bbd05
Author | SHA1 | Date | |
---|---|---|---|
|
f6500bbd05 | ||
|
432cb9c87b | ||
|
9faddddf84 | ||
|
682779b0f3 |
3 changed files with 7 additions and 6 deletions
|
@ -862,11 +862,11 @@
|
||||||
"plugin-lzn-auto-require": {
|
"plugin-lzn-auto-require": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722716302,
|
"lastModified": 1722727896,
|
||||||
"narHash": "sha256-YehBjQ4m3i0yEnts7HhWW78N6g40hblfcl94d7l9aN4=",
|
"narHash": "sha256-h7Dx3zBkUYamQY6lcuQrwAMgBpPqskLnA6WsbefHzMU=",
|
||||||
"owner": "horriblename",
|
"owner": "horriblename",
|
||||||
"repo": "lzn-auto-require",
|
"repo": "lzn-auto-require",
|
||||||
"rev": "57567c9db26a3b5b143ae91f35143c34706e8881",
|
"rev": "c6b47e148a1ff9709e802f68c2c8b558a9a8de9b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -94,9 +94,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
rhs = mkOption {
|
rhs = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr (either str luaInline);
|
||||||
default = null;
|
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 {
|
mode = mkOption {
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
|
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
|
||||||
in {
|
in {
|
||||||
config.vim = mkIf cfg.enable {
|
config.vim = mkIf cfg.enable {
|
||||||
startPlugins = ["lz-n"];
|
startPlugins = ["lz-n" "lzn-auto-require"];
|
||||||
|
|
||||||
optPlugins = mapAttrsToList (_: plugin: plugin.package) cfg.plugins;
|
optPlugins = mapAttrsToList (_: plugin: plugin.package) cfg.plugins;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue