docs: use nvf injections in docs

This commit is contained in:
Snoweuph 2026-05-11 22:22:20 +02:00
commit 43de0c6acb
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
8 changed files with 64 additions and 13 deletions

View file

@ -650,9 +650,11 @@ As you've seen above, `toLuaObject` is used to convert our nix attrSet
that return specific values as expected by the plugins.
```nix
{
let
inherit (lib.generators) mkLuaInline;
in {
vim.your-plugin.setupOpts = {
on_init = lib.generators.mkLuaInline ''
on_init = mkLuaInline ''
function()
print('we can write lua!')
end