-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
45 lines (37 loc) · 1.05 KB
/
Copy pathinit.lua
File metadata and controls
45 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---@class Ctx
---@field stdout string
---@field code number
---@field signal number
---@field stderr string
---@class Source
---@field items Selectors
---@field new fun(self: Source, Selectors: Selector[]): Source
---@field complete fun(self: Source, arg: any, callback: fun(result: { items: Selector[], isComplete: boolean }))
---@field is_available fun(self: Source): boolean
---@class Link
---@field url string
---@field available boolean
---@field fetched boolean
---@field provider string
---@class LocalItem
---@field path string
---@field available boolean
---@field fetched boolean
---@field file_name string
---@class Externals
---@field cdn Link[]
---@field locals LocalItem[]
---@class Selector
---@field label string
---@field kind cmp.lsp.CompletionItemKind.Enum
---@field source string
---@class Selectors
---@field ids Selector[]?
---@field classes Selector[]?
---@class StoreItem
---@field externals Externals?
---@field file_name string?
---@field selectors Selectors?
---@class Config
---@field enable_on string[]
---@field style_sheets string[]