فهرست منبع

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