diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-11-17 08:47:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 08:47:41 -0700 |
commit | 32cba4cee6c2ca232b5def16fe1bae8166d093f1 (patch) | |
tree | 31cb31b570e2263250471ea2ee08be1b41ac8d31 /runtime/doc/lua.txt | |
parent | 9736605672e8648bbe8739a6fdd1c315183bce40 (diff) | |
parent | 6d9c3d903ecee2d1d21d0a0806f1a2bebe628e8e (diff) | |
download | rneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.tar.gz rneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.tar.bz2 rneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.zip |
Merge pull request #20956 from gpanders/lua-readsecure
feat: implement vim.secure.read() and use it for 'exrc'
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index cab2f49d94..c5ede97725 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2354,4 +2354,20 @@ parents({start}) *vim.fs.parents()* Return: ~ (function) Iterator + +============================================================================== +Lua module: secure *lua-secure* + +read({path}) *vim.secure.read()* + Attempt to read the file at {path} prompting the user if the file should + be trusted. The user's choice is persisted in a trust database at + $XDG_STATE_HOME/nvim/trust. + + Parameters: ~ + • {path} (string) Path to a file to read. + + Return: ~ + (string|nil) The contents of the given file if it exists and is + trusted, or nil otherwise. + vim:tw=78:ts=8:sw=4:sts=4:et:ft=help:norl: |