소스 검색

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
   endif
  endfunction
  endfunction
 vnoremap <silent> <space>/ :call Comment()
 vnoremap <silent> <space>/ :call Comment()
+autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx
+autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */}