From e95a02029a4d0df42212ffec10a43c8f50ecc595 Mon Sep 17 00:00:00 2001 From: Ben Weedon Date: Sat, 5 Mar 2022 23:32:10 -0500 Subject: [PATCH] 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. --- syntax/typescript.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/typescript.vim b/syntax/typescript.vim index 474e228..328021c 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -226,9 +226,9 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen " Define the default highlighting. " For version 5.7 and earlier: only when not done already by this script " For version 5.8 and later: only when an item doesn't have highlighting yet -" For version 8.1.1486 and later: only when not done already by this script (need to override vim's new typescript support) +" 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) if version >= 508 || !exists("did_typescript_syn_inits") - if version < 508 || has('patch-8.1.1486') + if version < 508 || has('patch-8.1.1486') || has('nvim-0.5.0') let did_typescript_syn_inits = 1 command -nargs=+ HiLink hi link else