From 3601498afed5fa3162e10fe72c010f6b4f0ca9e0 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 10 Mar 2021 11:51:40 -0500 Subject: react commenting works again --- plug-config/vim-commentary.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim index b6758b38..09ce8958 100644 --- a/plug-config/vim-commentary.vim +++ b/plug-config/vim-commentary.vim @@ -6,3 +6,5 @@ function! Comment() endif endfunction vnoremap / :call Comment() +autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx +autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */} -- cgit v1.2.3