wrap lazy init code in function

This commit is contained in:
Pei Yang Ching 2024-07-10 12:39:53 +02:00
parent e9fb27ae81
commit 9bf95b70c7

View file

@ -19,7 +19,7 @@ in {
{ {
toggleterm-nvim = { toggleterm-nvim = {
package = "toggleterm-nvim"; package = "toggleterm-nvim";
after = "require('toggleterm').setup{}"; after = lib.generators.mkLuaInline "function() require('toggleterm').setup{} end";
cmd = ["ToggleTerm"]; cmd = ["ToggleTerm"];
}; };
} }