diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-03-27 19:05:38 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-03-27 19:05:38 +0530 |
commit | 838a35049e899cc414ea1e6b3938cacdb1d1794f (patch) | |
tree | 337e4d88a5ddea5d454e406292c4786fea16b5c6 /.config/nvim/init.vim | |
parent | 497ddb40ee085938bd08cd06d154ca1ab3c4573b (diff) |
added some plugins for react.js development
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r-- | .config/nvim/init.vim | 22 |
1 files changed, 21 insertions, 1 deletions
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 |