We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefa335 commit 666ddebCopy full SHA for 666ddeb
lua/nvim-tree/utils.lua
@@ -17,22 +17,6 @@ function M.str_find(haystack, needle)
17
return vim.fn.stridx(haystack, needle) ~= -1
18
end
19
20
----@param path string
21
----@return string|uv.uv_fs_t
22
-function M.read_file(path)
23
- local fd = vim.loop.fs_open(path, "r", 438)
24
- if not fd then
25
- return ""
26
- end
27
- local stat = vim.loop.fs_fstat(fd)
28
- if not stat then
29
30
31
- local data = vim.loop.fs_read(fd, stat.size, 0)
32
- vim.loop.fs_close(fd)
33
- return data or ""
34
-end
35
-
36
local path_separator = package.config:sub(1, 1)
37
---@param paths string[]
38
---@return string
0 commit comments