From f761941a806b49b764fe54b0541a04d7287175a1 Mon Sep 17 00:00:00 2001 From: Jonas Ryssel Date: Tue, 20 Aug 2024 15:09:35 +0200 Subject: [PATCH] Fix typo in perlpls config Support javascript in HTML commentstring --- init.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index b3e746f..83728c5 100644 --- a/init.vim +++ b/init.vim @@ -824,6 +824,8 @@ augroup CustomCommentDefinitions if &ft == 'html' if join(syntaxGroups, ',') =~ 'ShaderScript' setlocal commentstring=\/\/\ %s + elseif join(syntaxGroups, ',') =~ 'javascript' + setlocal commentstring=\/\/\ %s elseif join(syntaxGroups, ',') =~ 'html' setlocal commentstring= endif @@ -1360,7 +1362,7 @@ lua <