Skip to content

Commit e95a020

Browse files
committed
Override neovim 0.5.0 and up's typescript support
This version of neovim has the same typescript support as vim 8 patch-8.1.1486, so we should override it as well.
1 parent 67e81e4 commit e95a020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/typescript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen
226226
" Define the default highlighting.
227227
" For version 5.7 and earlier: only when not done already by this script
228228
" For version 5.8 and later: only when an item doesn't have highlighting yet
229-
" For version 8.1.1486 and later: only when not done already by this script (need to override vim's new typescript support)
229+
" For version 8.1.1486 and later, and nvim 0.5.0 and later: only when not done already by this script (need to override vim's new typescript support)
230230
if version >= 508 || !exists("did_typescript_syn_inits")
231-
if version < 508 || has('patch-8.1.1486')
231+
if version < 508 || has('patch-8.1.1486') || has('nvim-0.5.0')
232232
let did_typescript_syn_inits = 1
233233
command -nargs=+ HiLink hi link <args>
234234
else

0 commit comments

Comments
 (0)