mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
Merge pull request #38 from ghmhd/@ghmhd/feature/add-jsx-comment-support
add jsx comment support
This commit is contained in:
commit
b900635a06
2 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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..
|
||||
|
|
Loading…
Reference in a new issue