mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 11:05:08 +02:00
12 lines
318 B
VimL
12 lines
318 B
VimL
|
function! Comment()
|
||
|
if (mode() == "n" )
|
||
|
execute "Commentary"
|
||
|
else
|
||
|
execute "'<,'>Commentary"
|
||
|
endif
|
||
|
endfunction
|
||
|
vnoremap <silent> <space>/ :call Comment()
|
||
|
"autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx
|
||
|
autocmd FileType javascriptreact setlocal commentstring={/*\ %s\ */}
|
||
|
|