From 838a35049e899cc414ea1e6b3938cacdb1d1794f Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 27 Mar 2021 19:05:38 +0530 Subject: added some plugins for react.js development --- .config/nvim/init.vim | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e9789cb..9b2bb27 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,11 +1,20 @@ call plug#begin('~/local/share/nvim/plugged') -Plug 'itchyny/lightline.vim' + +" find a better plugin to do this +" which works with tsx and +" doesn't interfere with coc-pairs Plug 'alvan/vim-closetag' + +Plug 'itchyny/lightline.vim' Plug 'Yggdroot/indentLine' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'romgrk/doom-one.vim' Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } +Plug 'maxmellon/vim-jsx-pretty' +Plug 'yuezk/vim-js' + +" Plug 'leafgarland/typescript-vim' " Plug 'vim-airline/vim-airline' " Plug 'dracula/vim', { 'as': 'dracula' } " Plug 'sts10/vim-pink-moon' @@ -61,5 +70,16 @@ let g:lightline = { " hexokinase config let g:Hexokinase_highlighters = ['virtual'] +" jsx-pretty config +let g:vim_jsx_pretty_highlight_close_tag = 1 +let g:vim_jsx_pretty_colorful_config = 1 + +" set filetypes as typescriptreact +" augroup SyntaxSettings +" autocmd! +" autocmd BufNewFile,BufRead *.tsx set filetype=typescript +" augroup END + + " colors and theming (copied from DT's config) highlight LineNr ctermfg=1 ctermbg=none cterm=none -- cgit v1.2.3