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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
---@alias lc.lang
---| "cpp"
---| "java"
---| "python"
---| "python3"
---| "c"
---| "csharp"
---| "javascript"
---| "typescript"
---| "php"
---| "swift"
---| "kotlin"
---| "dart"
---| "golang"
---| "ruby"
---| "scala"
---| "rust"
---| "racket"
---| "erlang"
---| "elixir"
---@alias lc.sql_lang
---| "pythondata"
---| "mysql"
---| "mssql"
---| "oraclesql"
---@alias lc.domain
---| "com"
---| "cn"
---@class lc.UserConfig
local M = {
---@type lc.domain
domain = 'com', -- For now "com" is the only one supported
---@type string
arg = 'leetcode.nvim',
---@type lc.lang
lang = 'cpp',
---@type lc.sql_lang
sql = 'mysql',
---@type string
directory = vim.fn.stdpath('data') .. '/leetcode/',
---@type boolean
logging = true,
console = {
---@type boolean
open_on_runcode = false,
size = {
width = '75%', ---@type string | integer
height = '75%', ---@type string | integer
},
dir = 'row', ---@type "col" | "row"
},
description = {
width = '40%', ---@type string | integer
},
}
return M
|