aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/fs.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-10-25 16:46:25 +0200
committerJustin M. Keyes <justinkz@gmail.com>2025-11-15 22:47:38 -0500
commit3f16037e45cfd7e66986e938ff2a6ff6165ebbed (patch)
treec1bb015a34e8a5aaedf4214262e66ea237353549 /runtime/lua/vim/fs.lua
parent30634f63e26da1ecfd8642eec4a53f4c220247d7 (diff)
downloadrneovim-3f16037e45cfd7e66986e938ff2a6ff6165ebbed.tar.gz
rneovim-3f16037e45cfd7e66986e938ff2a6ff6165ebbed.tar.bz2
rneovim-3f16037e45cfd7e66986e938ff2a6ff6165ebbed.zip
docs: getpos, getregion, lsp
Diffstat (limited to 'runtime/lua/vim/fs.lua')
-rw-r--r--runtime/lua/vim/fs.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/lua/vim/fs.lua b/runtime/lua/vim/fs.lua
index 1a3011e495..6773bb00ff 100644
--- a/runtime/lua/vim/fs.lua
+++ b/runtime/lua/vim/fs.lua
@@ -9,6 +9,15 @@
--- vim.print('file exists')
--- end
--- <
+---
+--- *vim.fs.read()*
+--- You can use |readblob()| to get a file's contents without explicitly opening/closing it.
+---
+--- Example:
+---
+--- >lua
+--- vim.print(vim.fn.readblob('.git/config'))
+--- <
local uv = vim.uv