mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
treewide(docs): use literalLua instead of __raw in option examples
This commit is contained in:
parent
5aae2b9fcd
commit
5ddfbdf1c2
23 changed files with 54 additions and 57 deletions
|
|
@ -55,9 +55,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
types.rawLua
|
||||
]) "img" "Directory that will be inserted into text/buffer.";
|
||||
|
||||
img_name = defaultNullOpts.mkStr {
|
||||
__raw = "function() return os.date('%Y-%m-%d-%H-%M-%S') end";
|
||||
} "Image's name.";
|
||||
img_name = defaultNullOpts.mkStr (lib.nixvim.literalLua "function() return os.date('%Y-%m-%d-%H-%M-%S') end") "Image's name.";
|
||||
|
||||
img_handler = defaultNullOpts.mkLuaFn "function(img) end" ''
|
||||
Function that will handle image after pasted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue