mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor(loader): format annotations
This commit is contained in:
@@ -47,10 +47,10 @@ local M = {}
|
|||||||
|
|
||||||
--- @alias vim.loader.Stats table<string, {total:number, time:number, [string]:number?}?>
|
--- @alias vim.loader.Stats table<string, {total:number, time:number, [string]:number?}?>
|
||||||
|
|
||||||
---@nodoc
|
--- @private
|
||||||
M.path = vim.fn.stdpath('cache') .. '/luac'
|
M.path = vim.fn.stdpath('cache') .. '/luac'
|
||||||
|
|
||||||
---@nodoc
|
--- @private
|
||||||
M.enabled = false
|
M.enabled = false
|
||||||
|
|
||||||
--- @type vim.loader.Stats
|
--- @type vim.loader.Stats
|
||||||
@@ -144,7 +144,7 @@ local function readfile(path, mode)
|
|||||||
local f = uv.fs_open(path, 'r', mode)
|
local f = uv.fs_open(path, 'r', mode)
|
||||||
if f then
|
if f then
|
||||||
local size = assert(uv.fs_fstat(f)).size
|
local size = assert(uv.fs_fstat(f)).size
|
||||||
local data = uv.fs_read(f, size, 0) --[[@as string?]]
|
local data = uv.fs_read(f, size, 0)
|
||||||
uv.fs_close(f)
|
uv.fs_close(f)
|
||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user