-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtypes.lua
More file actions
54 lines (49 loc) · 1.61 KB
/
Copy pathtypes.lua
File metadata and controls
54 lines (49 loc) · 1.61 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
46
47
48
49
50
51
52
53
54
---@meta
---Plugin config state.
---@class pyrepl.Config
---@field split_horizontal boolean
---@field split_ratio number
---@field style string
---@field style_integration boolean
---@field image_max_history integer
---@field image_width_ratio number
---@field image_height_ratio number
---@field image_provider string
---@field cell_pattern string|fun(): string
---@field python_path string|nil
---@field preferred_kernel string|nil
---@field jupytext_hook boolean
---@field auto_install false | "pip" | "uv"
---Plugin setup opts (all arguments are optional).
---@class pyrepl.ConfigOpts
---@field split_horizontal? boolean
---@field split_ratio? number
---@field style? string
---@field style_integration? boolean
---@field image_max_history? integer
---@field image_width_ratio? number
---@field image_height_ratio? number
---@field image_provider? "placeholders" | "image" | string
---@field cell_pattern? string|fun(): string
---@field python_path? string
---@field preferred_kernel? string
---@field jupytext_hook? boolean
---@field auto_install? false | "pip" | "uv"
---Image provider interface.
---@class pyrepl.Image
---@field create fun(img_base64: string): pyrepl.Image|nil
---@field render fun(self: pyrepl.Image, buf: integer, win: integer)
---@field clear fun(self: pyrepl.Image)
---@field delete fun(self: pyrepl.Image)
---@class pyrepl.ReplState
---@field closing boolean
---@field chan integer
---@field args table
---@field buf integer
---@field win integer|nil
---@class pyrepl.ImageHistoryState
---@field closing boolean
---@field history pyrepl.Image[]
---@field idx integer
---@field buf integer|nil
---@field win integer|nil