summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-10 11:51:40 -0500
committerChris <[email protected]>2021-03-10 11:51:40 -0500
commit3601498afed5fa3162e10fe72c010f6b4f0ca9e0 (patch)
tree15ef87b31d05ec5811ee03be17e50f1367e4f9c0
parent6ee46aa267a82b14d3aeabb093b1b6eeb26a6932 (diff)
react commenting works again
-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\ */}