summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plug-config/vim-commentary.vim2
1 files changed, 2 insertions, 0 deletions
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 <silent> <space>/ :call Comment()
+autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx
+autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */}