aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/secure.lua
Commit message (Collapse)AuthorAge
* feat: add vim.secure.read()Gregory Anders2022-11-17
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.