Browse Source

react commenting works again

Chris 4 năm trước cách đây
mục cha
commit
3601498afe
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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\ */}