Przeglądaj źródła

react commenting works again

Chris 4 lat temu
rodzic
commit
3601498afe
1 zmienionych plików z 2 dodań i 0 usunięć
  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\ */}