summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plug-config/vim-commentary.vim4
-rw-r--r--vim-plug/plugins.vim4
2 files changed, 5 insertions, 3 deletions
diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim
index f672715d..b6758b38 100644
--- a/plug-config/vim-commentary.vim
+++ b/plug-config/vim-commentary.vim
@@ -1,4 +1,3 @@
-" this function check whether vim is in normal mode or not and comment appropriately
function! Comment()
if (mode() == "n" )
execute "Commentary"
@@ -6,5 +5,4 @@ function! Comment()
execute "'<,'>Commentary"
endif
endfunction
-vnoremap <silent> <space>/ :call Comment()
-autocmd filetype javascript.jsx setlocal commentstring={/*\ %s\ */}
+vnoremap <silent> <space>/ :call Comment()
diff --git a/vim-plug/plugins.vim b/vim-plug/plugins.vim
index 6b580108..7369468a 100644
--- a/vim-plug/plugins.vim
+++ b/vim-plug/plugins.vim
@@ -8,6 +8,10 @@ endif
call plug#begin('~/.config/nvim/autoload/plugged')
+ " jsx syntax support
+ Plug 'maxmellon/vim-jsx-pretty'
+
+ Plug 'suy/vim-context-commentstring'
" Change dates fast
Plug 'tpope/vim-speeddating'
" Convert binary, hex, etc..