From 3f16037e45cfd7e66986e938ff2a6ff6165ebbed Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 25 Oct 2025 16:46:25 +0200 Subject: docs: getpos, getregion, lsp --- runtime/lua/vim/fs.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/lua/vim/fs.lua') 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 -- cgit