diff options
author | Gregory Anders <greg@gpanders.com> | 2022-11-05 13:37:05 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2022-11-17 08:23:41 -0700 |
commit | f1922e78a1df1b1d32779769432fb5586edf5fbb (patch) | |
tree | c80eece970f5b42cf04ad2161a655f33638ec7ce /runtime/lua/vim/_editor.lua | |
parent | 9736605672e8648bbe8739a6fdd1c315183bce40 (diff) | |
download | rneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.tar.gz rneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.tar.bz2 rneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.zip |
feat: add vim.secure.read()
This function accepts a path to a file and prompts the user if the file
is trusted. If the user confirms that the file is trusted, the contents
of the file are returned. The user's decision is stored in a trust
database at $XDG_STATE_HOME/nvim/trust. When this function is invoked
with a path that is already marked as trusted in the trust database, the
user is not prompted for a response.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
-rw-r--r-- | runtime/lua/vim/_editor.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua index 0013f38d89..ad4dc20efb 100644 --- a/runtime/lua/vim/_editor.lua +++ b/runtime/lua/vim/_editor.lua @@ -36,6 +36,7 @@ for k, v in pairs({ ui = true, health = true, fs = true, + secure = true, }) do vim._submodules[k] = v end |