mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-22 20:43:27 +00:00
docs: use nvf injections in docs
This commit is contained in:
parent
5ee7fb1986
commit
43de0c6acb
8 changed files with 64 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue