add vim and libuv runtime for luals, qualify libuv types
This commit is contained in:
parent
3af30ee20e
commit
8393f7cc0c
@ -1,6 +1,12 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
"runtime.version" : "Lua 5.1",
|
||||
"workspace": {
|
||||
"library": [
|
||||
"$VIMRUNTIME",
|
||||
"${3rd}/luv/library"
|
||||
]
|
||||
},
|
||||
"diagnostics": {
|
||||
"globals": [
|
||||
"vim"
|
||||
|
||||
@ -18,7 +18,7 @@ local function get_type_from(type_, cwd)
|
||||
return type_ or (vim.loop.fs_stat(cwd) or {}).type
|
||||
end
|
||||
|
||||
---@param handle uv_fs_t
|
||||
---@param handle uv.uv_fs_t
|
||||
---@param cwd string
|
||||
---@param node Node
|
||||
---@param git_status table
|
||||
|
||||
@ -60,8 +60,8 @@ function Runner:_handle_incoming_data(prev_output, incoming)
|
||||
return ""
|
||||
end
|
||||
|
||||
---@param stdout_handle uv_pipe_t
|
||||
---@param stderr_handle uv_pipe_t
|
||||
---@param stdout_handle uv.uv_pipe_t
|
||||
---@param stderr_handle uv.uv_pipe_t
|
||||
---@return table
|
||||
function Runner:_getopts(stdout_handle, stderr_handle)
|
||||
local untracked = self.list_untracked and "-u" or nil
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
---@class BaseNode
|
||||
---@field absolute_path string
|
||||
---@field executable boolean
|
||||
---@field fs_stat uv_fs_t
|
||||
---@field fs_stat uv.uv_fs_t
|
||||
---@field git_status GitStatus|nil
|
||||
---@field hidden boolean
|
||||
---@field name string
|
||||
|
||||
@ -19,7 +19,7 @@ function M.str_find(haystack, needle)
|
||||
end
|
||||
|
||||
---@param path string
|
||||
---@return string|uv_fs_t
|
||||
---@return string|uv.uv_fs_t
|
||||
function M.read_file(path)
|
||||
local fd = vim.loop.fs_open(path, "r", 438)
|
||||
if not fd then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user