mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +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?}?>
|
||||
|
||||
---@nodoc
|
||||
--- @private
|
||||
M.path = vim.fn.stdpath('cache') .. '/luac'
|
||||
|
||||
---@nodoc
|
||||
--- @private
|
||||
M.enabled = false
|
||||
|
||||
--- @type vim.loader.Stats
|
||||
@@ -144,7 +144,7 @@ local function readfile(path, mode)
|
||||
local f = uv.fs_open(path, 'r', mode)
|
||||
if f then
|
||||
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)
|
||||
return data
|
||||
end
|
||||
|
Reference in New Issue
Block a user