浏览代码

react commenting works again

Chris 4 年之前
父节点
当前提交
3601498afe
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plug-config/vim-commentary.vim

+ 2 - 0
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\ */}