irongit

A Neovim plugin enabling you to solve LeetCode problems.

174 lines3.3 KBLua
1---@class lc.language
2---@field lang string
3---@field slug string
4---@field icon string
5---@field color string
6---@field hl? string
7---@field comment string
8---@field ft string
9---@field alt? string
10
11---@type lc.language[]
12return {
13 {
14 lang = "C++",
15 slug = "cpp",
16 icon = "",
17 color = "#00599C",
18 ft = "cpp",
19 comment = "//",
20 },
21 {
22 lang = "Java",
23 slug = "java",
24 icon = "",
25 color = "#E76F00",
26 ft = "java",
27 comment = "//",
28 },
29 {
30 lang = "Python",
31 slug = "python",
32 icon = "",
33 color = "#306998",
34 ft = "py",
35 comment = "#",
36 alt = "python2",
37 },
38 {
39 lang = "Python3",
40 slug = "python3",
41 icon = "",
42 color = "#306998",
43 ft = "py",
44 comment = "#",
45 },
46 {
47 lang = "C",
48 slug = "c",
49 icon = "",
50 color = "#555555",
51 ft = "c",
52 comment = "//",
53 },
54 {
55 lang = "C#",
56 slug = "csharp",
57 icon = "󰌛",
58 color = "#68217A",
59 ft = "cs",
60 comment = "//",
61 },
62 {
63 lang = "JavaScript",
64 slug = "javascript",
65 icon = "",
66 color = "#F0DB4F",
67 ft = "js",
68 comment = "//",
69 },
70 {
71 lang = "TypeScript",
72 slug = "typescript",
73 icon = "",
74 color = "#3178C6",
75 ft = "ts",
76 comment = "//",
77 },
78 {
79 lang = "PHP",
80 slug = "php",
81 icon = "",
82 color = "#777BB4",
83 ft = "php",
84 comment = "//",
85 },
86 {
87 lang = "Swift",
88 slug = "swift",
89 icon = "",
90 color = "#FFAC45",
91 ft = "swift",
92 comment = "//",
93 },
94 {
95 lang = "Kotlin",
96 slug = "kotlin",
97 icon = "",
98 color = "#7F52FF",
99 ft = "kt",
100 comment = "//",
101 },
102 {
103 lang = "Dart",
104 slug = "dart",
105 icon = "",
106 color = "#1057A7",
107 ft = "dart",
108 comment = "//",
109 },
110 {
111 lang = "Go",
112 slug = "golang",
113 icon = "",
114 color = "#00ADD8",
115 ft = "go",
116 comment = "//",
117 },
118 {
119 lang = "Ruby",
120 slug = "ruby",
121 icon = "",
122 color = "#CC342D",
123 ft = "rb",
124 comment = "#",
125 },
126 {
127 lang = "Scala",
128 slug = "scala",
129 icon = "",
130 color = "#DC322F",
131 ft = "scala",
132 comment = "//",
133 },
134 {
135 lang = "Rust",
136 slug = "rust",
137 icon = "",
138 color = "#DEA584",
139 ft = "rs",
140 comment = "//",
141 },
142 {
143 lang = "Racket",
144 slug = "racket",
145 icon = "󰰟",
146 color = "#22228F",
147 ft = "rkt",
148 comment = ";;",
149 },
150 {
151 lang = "Erlang",
152 slug = "erlang",
153 icon = "",
154 color = "#A90533",
155 ft = "erl",
156 comment = "%",
157 },
158 {
159 lang = "Elixir",
160 slug = "elixir",
161 icon = "",
162 color = "#6E4A7E",
163 ft = "ex",
164 comment = "#",
165 },
166 {
167 lang = "Bash",
168 slug = "bash",
169 icon = "󱆃",
170 color = "#000000",
171 ft = "sh",
172 comment = "#",
173 },
174}