tangled
alpha
login
or
join now
algmyr.se
/
vim-wombat-lua
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
Tune TS assignments.
algmyr.se
6 months ago
4e11bc8d
ade30dc9
+59
-49
2 changed files
expand all
collapse all
unified
split
lua
wombat_lua
colors.lua
wombat.lua
+5
-1
lua/wombat_lua/colors.lua
···
10
10
type = "#d4d987",
11
11
special = "#eadead",
12
12
string = "#95e454",
13
13
+
docstring = "#95e454",
13
14
escape = "#d787ff",
14
14
-
character = "#e5786d",
15
15
+
attribute = "#e5786d",
16
16
+
17
17
+
-- Markdown
18
18
+
header = "#eadead",
15
19
16
20
-- Diffing
17
21
diff_add = "#003300",
+54
-48
lua/wombat_lua/wombat.lua
···
124
124
125
125
Identifier { fg = c.identifier, bg = c.none, gui = s.none },
126
126
Function { fg = c.func, bg = c.none, gui = s.none },
127
127
+
FunctionCall { fg = c.func, bg = c.none, gui = s.none },
127
128
128
129
Type { fg = c.type, bg = c.none, gui = s.none },
129
130
StorageClass { Type },
···
140
141
String { fg = c.string, bg = c.none },
141
142
Character { fg = c.character, bg = c.none },
142
143
StringEscape { fg = c.escape, bg = c.none },
144
144
+
DocString { fg = c.docstring, bg = c.none },
143
145
144
146
Comment { fg = c.comment, bg = c.none },
145
147
Operator { fg = c.operator, bg = c.none },
146
148
Todo { fg = c.main_bg, bg = c.todo },
149
149
+
150
150
+
Namespace { fg = c.namespace, bg = c.none },
151
151
+
Attribute { fg = c.attribute, bg = c.none },
147
152
148
153
Noop { fg = c.norm_accent, bg = c.none, gui = s.none },
149
154
CocFadeOut { Noop },
···
189
194
190
195
-- Identifiers
191
196
sym("@variable") { Identifier }, -- various variable names
192
192
-
--sym("@variable.builtin") {}, -- built-in variable names (e.g. `this`)
197
197
+
sym("@variable.builtin") { Identifier }, -- built-in variable names (e.g. `this`)
193
198
sym("@variable.parameter") { Normal }, -- parameters of a function
194
194
-
--sym("@variable.parameter.builtin") {}, -- special parameters (e.g. `_`, `it`)
195
195
-
--sym("@variable.member") {}, -- object and struct fields
199
199
+
sym("@variable.parameter.builtin") { Normal }, -- special parameters (e.g. `_`, `it`)
200
200
+
sym("@variable.member") { Identifier }, -- object and struct fields
196
201
197
202
sym("@constant") { Constant }, -- constant identifiers
198
198
-
--sym("@constant.builtin") {}, -- built-in constant values
199
199
-
--sym("@constant.macro") {}, -- constants defined by the preprocessor
203
203
+
sym("@constant.builtin") { Constant }, -- built-in constant values
204
204
+
sym("@constant.macro") { Constant }, -- constants defined by the preprocessor
200
205
201
201
-
sym("@module") { fg = c.namespace, bg = c.none }, -- modules or namespaces
202
202
-
--sym("@module.builtin") {}, -- built-in modules or namespaces
206
206
+
sym("@module") { Namespace }, -- modules or namespaces
207
207
+
sym("@module.builtin") { Namespace }, -- built-in modules or namespaces
203
208
sym("@label") { Label }, -- GOTO and other labels (e.g. `label:` in C), including heredoc labels
204
209
205
210
-- Literals
206
211
sym("@string") { String }, -- string literals
207
207
-
--sym("@string.documentation") {}, -- string documenting code (e.g. Python docstrings)
212
212
+
sym("@string.documentation") { DocString }, -- string documenting code (e.g. Python docstrings)
208
213
sym("@string.regexp") { String }, -- regular expressions
209
214
sym("@string.escape") { StringEscape }, -- escape sequences
210
215
sym("@string.special") { String }, -- other special strings (e.g. dates)
211
216
sym("@string.special.symbol") { Special }, -- symbols or atoms
212
212
-
--sym("@string.special.url") {}, -- URIs (e.g. hyperlinks)
213
213
-
--sym("@string.special.path") {}, -- filenames
217
217
+
sym("@string.special.url") { String }, -- URIs (e.g. hyperlinks)
218
218
+
sym("@string.special.path") { String }, -- filenames
214
219
215
220
sym("@character") { Character }, -- character literals
216
221
sym("@character.special") { Character }, -- special characters (e.g. wildcards)
···
222
227
-- Types
223
228
sym("@type") { Type }, -- type or class definitions and annotations
224
229
sym("@type.builtin") { Type }, -- built-in types
225
225
-
--sym("@type.definition") {}, -- identifiers in type definitions (e.g. `typedef <type> <identifier>` in C)
230
230
+
sym("@type.definition") { Type }, -- identifiers in type definitions (e.g. `typedef <type> <identifier>` in C)
226
231
227
227
-
--sym("@attribute") {}, -- attribute annotations (e.g. Python decorators, Rust lifetimes)
228
228
-
--sym("@attribute.builtin") {}, -- builtin annotations (e.g. `@property` in Python)
232
232
+
sym("@attribute") { Attribute }, -- attribute annotations (e.g. Python decorators, Rust lifetimes)
233
233
+
sym("@attribute.builtin") { Attribute }, -- builtin annotations (e.g. `@property` in Python)
229
234
sym("@property") { Identifier }, -- the key in key/value pairs
230
235
sym("@property.toml") { Type },
231
236
sym("@property.jjconfig") { Type },
···
233
238
-- Functions
234
239
sym("@function") { Function }, -- function definitions
235
240
sym("@function.builtin") { Function }, -- built-in functions
236
236
-
--sym("@function.call") {}, -- function calls
241
241
+
sym("@function.call") { FunctionCall }, -- function calls
237
242
sym("@function.macro") { Function }, -- preprocessor macros
238
243
239
239
-
--sym("@function.method") {}, -- method definitions
240
240
-
--sym("@function.method.call") {}, -- method calls
244
244
+
sym("@function.method") { Function }, -- method definitions
245
245
+
sym("@function.method.call") { FunctionCall }, -- method calls
241
246
242
247
sym("@constructor") { Function }, -- constructor calls and definitions
243
248
sym("@operator") { Operator }, -- symbolic operators (e.g. `+` / `*`)
244
249
245
250
-- Keywords
246
251
sym("@keyword") { Keyword }, -- keywords not fitting into specific categories
247
247
-
--sym("@keyword.coroutine") {}, -- keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)
252
252
+
sym("@keyword.coroutine") { Keyword }, -- keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)
248
253
sym("@keyword.function") { Keyword }, -- keywords that define a function (e.g. `func` in Go, `def` in Python)
249
254
sym("@keyword.operator") { Keyword }, -- operators that are English words (e.g. `and` / `or`)
250
255
sym("@keyword.import") { Include }, -- keywords for including or exporting modules (e.g. `import` / `from` in Python)
251
251
-
--sym("@keyword.type") {}, -- keywords describing namespaces and composite types (e.g. `struct`, `enum`)
252
252
-
--sym("@keyword.modifier") {}, -- keywords modifying other constructs (e.g. `const`, `static`, `public`)
256
256
+
sym("@keyword.type") { Keyword }, -- keywords describing namespaces and composite types (e.g. `struct`, `enum`)
257
257
+
sym("@keyword.modifier") { Keyword }, -- keywords modifying other constructs (e.g. `const`, `static`, `public`)
253
258
sym("@keyword.repeat") { Repeat }, -- keywords related to loops (e.g. `for` / `while`)
254
259
sym("@keyword.return") { Keyword }, -- keywords like `return` and `yield`
255
255
-
--sym("@keyword.debug") {}, -- keywords related to debugging
260
260
+
sym("@keyword.debug") { Keyword }, -- keywords related to debugging
256
261
sym("@keyword.exception") { Exception }, -- keywords related to exceptions (e.g. `throw` / `catch`)
257
262
258
263
sym("@keyword.conditional") { Conditional }, -- keywords related to conditionals (e.g. `if` / `else`)
259
259
-
--sym("@keyword.conditional.ternary") {},-- ternary operator (e.g. `?` / `:`)
264
264
+
sym("@keyword.conditional.ternary") { Conditional }, -- ternary operator (e.g. `?` / `:`)
260
265
261
261
-
--sym("@keyword.directive") {}, -- various preprocessor directives & shebangs
262
262
-
--sym("@keyword.directive.define") {}, -- preprocessor definition directives
266
266
+
sym("@keyword.directive") { PreProc }, -- various preprocessor directives & shebangs
267
267
+
sym("@keyword.directive.define") { PreProc }, -- preprocessor definition directives
263
268
264
269
-- Punctuation
265
270
sym("@punctuation.delimiter") { Special }, -- delimiters (e.g. `;` / `.` / `,`)
···
268
273
269
274
-- Comments
270
275
sym("@comment") { Comment }, -- line and block comments
271
271
-
--sym("@comment.documentation") {},-- comments documenting code
276
276
+
sym("@comment.documentation") { Comment }, -- comments documenting code
272
277
273
278
sym("@comment.error") { Error }, -- error-type comments (e.g. `ERROR`, `FIXME`, `DEPRECATED`)
274
279
sym("@comment.warning") { Warning }, -- warning-type comments (e.g. `WARNING`, `FIX`, `HACK`)
···
282
287
--sym("@markup.strikethrough") { Normal }, -- struck-through text
283
288
--sym("@markup.underline") { Normal }, -- underlined text (only for literal underline markup!)
284
289
285
285
-
--sym("@markup.heading") {}, -- headings, titles (including markers)
286
286
-
--sym("@markup.heading.1") {}, -- top-level heading
287
287
-
--sym("@markup.heading.2") {}, -- section heading
288
288
-
--sym("@markup.heading.3") {}, -- subsection heading
289
289
-
--sym("@markup.heading.4") {}, -- and so on
290
290
-
--sym("@markup.heading.5") {}, -- and so forth
291
291
-
--sym("@markup.heading.6") {}, -- six levels ought to be enough for anybody
290
290
+
Header { fg = c.header, bg = c.none, gui = s.bold }, -- headings, titles (e.g. `#` in Markdown)
291
291
+
sym("@markup.heading") { Header }, -- headings, titles (including markers)
292
292
+
sym("@markup.heading.1") { Header }, -- top-level heading
293
293
+
sym("@markup.heading.2") { Header }, -- section heading
294
294
+
sym("@markup.heading.3") { Header }, -- subsection heading
295
295
+
sym("@markup.heading.4") { Header }, -- and so on
296
296
+
sym("@markup.heading.5") { Header }, -- and so forth
297
297
+
sym("@markup.heading.6") { Header }, -- six levels ought to be enough for anybody
292
298
293
293
-
--sym("@markup.quote") {}, -- block quotes
294
294
-
--sym("@markup.math") {}, -- math environments (e.g. `$ ... $` in LaTeX)
299
299
+
sym("@markup.quote") { String }, -- block quotes
300
300
+
sym("@markup.math") { Special }, -- math environments (e.g. `$ ... $` in LaTeX)
295
301
296
296
-
--sym("@markup.link") {}, -- text references, footnotes, citations, etc.
297
297
-
--sym("@markup.link.label") {}, -- link, reference descriptions
298
298
-
--sym("@markup.link.url") {}, -- URL-style links
302
302
+
sym("@markup.link") { Operator }, -- text references, footnotes, citations, etc.
303
303
+
sym("@markup.link.label") {}, -- link, reference descriptions
304
304
+
sym("@markup.link.url") { Special }, -- URL-style links
299
305
300
300
-
--sym("@markup.raw") {}, -- literal or verbatim text (e.g. inline code)
301
301
-
--sym("@markup.raw.block") {}, -- literal or verbatim text as a stand-alone block
306
306
+
sym("@markup.raw") { String }, -- literal or verbatim text (e.g. inline code)
307
307
+
sym("@markup.raw.block") { String }, -- literal or verbatim text as a stand-alone block
302
308
-- -- (use priority 90 for blocks with injections)
303
309
304
304
-
--sym("@markup.list") {}, -- list markers
305
305
-
--sym("@markup.list.checked") {}, -- checked todo-style list markers
306
306
-
--sym("@markup.list.unchecked") {}, -- unchecked todo-style list markers
310
310
+
sym("@markup.list") { Operator }, -- list markers
311
311
+
sym("@markup.list.checked") { Operator, gui = s.bold }, -- checked todo-style list markers
312
312
+
sym("@markup.list.unchecked") { Operator }, -- unchecked todo-style list markers
307
313
308
314
sym("@diff.plus") { DiffAdd }, -- added text (for diff files)
309
315
sym("@diff.minus") { DiffDelete }, -- deleted text (for diff files)
310
316
sym("@diff.delta") { DiffChange }, -- changed text (for diff files)
311
317
312
312
-
sym("@tag") { Special }, -- XML-style tag names (and similar)
313
313
-
--sym("@tag.builtin") {}, -- builtin tag names (e.g. HTML5 tags)
314
314
-
sym("@tag.attribute") { Special }, -- XML-style tag attributes
315
315
-
sym("@tag.delimiter") { Special }, -- XML-style tag delimiters
318
318
+
sym("@tag") { Keyword }, -- XML-style tag names (and similar)
319
319
+
sym("@tag.builtin") { Keyword }, -- builtin tag names (e.g. HTML5 tags)
320
320
+
sym("@tag.attribute") { Attribute }, -- XML-style tag attributes
321
321
+
sym("@tag.delimiter") { Delimiter }, -- XML-style tag delimiters
316
322
317
323
-- Non-highlighting captures
318
318
-
--sym("@conceal") {}, -- captures that are only meant to be concealed
324
324
+
sym("@conceal") {}, -- captures that are only meant to be concealed
319
325
320
320
-
--sym("@spell") {}, -- for defining regions to be spellchecked
321
321
-
--sym("@nospell") {}, -- for defining regions that should NOT be spellchecked
326
326
+
sym("@spell") {}, -- for defining regions to be spellchecked
327
327
+
sym("@nospell") {}, -- for defining regions that should NOT be spellchecked
322
328
}
323
329
end)
324
330