Compare commits

...

3 Commits

Author SHA1 Message Date
Ray Elliott 4320cae8ec Merge branch 'master' of ssh://git.rayelliott.dev:3222/dots/nvim 2020-04-29 14:55:57 +01:00
Ray Elliott d0192ef83b update 2020-04-29 14:55:37 +01:00
Ray Elliott e4d82ef50e add jsx definitions 2020-04-29 14:55:15 +01:00
3 changed files with 14 additions and 0 deletions

View File

@ -112,3 +112,7 @@ endsnippet
snippet th "this.handle..." snippet th "this.handle..."
this.handle${1:Click} = this.handle$1.bind(this); this.handle${1:Click} = this.handle$1.bind(this);
endsnippet endsnippet
snippet tb "this ... = ... .bind(this);"
this.$1 = this.$1.bind(this);
endsnippet

View File

@ -488,6 +488,10 @@
[ "jsThis", "jsGlobalObjects" ], [ "jsThis", "jsGlobalObjects" ],
[ "jsArrowFunction", "Function" ], [ "jsArrowFunction", "Function" ],
# jsx
[ "jsxTagName", "htmlTagName" ],
[ "jsxComponentName", "htmlSpecialTagName" ],
[ "jsxAttrib", "htmlArg" ],
# python # python
[ "pythonBuiltin", "Type" ], [ "pythonBuiltin", "Type" ],

View File

@ -243,6 +243,9 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
hi link jsOperatorKeyword Label hi link jsOperatorKeyword Label
hi link jsThis jsGlobalObjects hi link jsThis jsGlobalObjects
hi link jsArrowFunction Function hi link jsArrowFunction Function
hi link jsxTagName htmlTagName
hi link jsxComponentName htmlSpecialTagName
hi link jsxAttrib htmlArg
hi link pythonBuiltin Type hi link pythonBuiltin Type
hi link pythonBuiltinObj Special hi link pythonBuiltinObj Special
hi link pythonDottedName Identifier hi link pythonDottedName Identifier
@ -608,6 +611,9 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
hi link jsOperatorKeyword Label hi link jsOperatorKeyword Label
hi link jsThis jsGlobalObjects hi link jsThis jsGlobalObjects
hi link jsArrowFunction Function hi link jsArrowFunction Function
hi link jsxTagName htmlTagName
hi link jsxComponentName htmlSpecialTagName
hi link jsxAttrib htmlArg
hi link pythonBuiltin Type hi link pythonBuiltin Type
hi link pythonBuiltinObj Special hi link pythonBuiltinObj Special
hi link pythonDottedName Identifier hi link pythonDottedName Identifier