From 2f975eef9ed023aec2a897274c504ed9ab3b795f Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 5 Oct 2021 15:08:35 -0700 Subject: [PATCH] updated init.vim --- nvim/init.vim | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 2edd330b..a8a4a378 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -2,7 +2,6 @@ " Specify a directory for plugins call plug#begin('~/.vim/plugged') - Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'scrooloose/nerdtree' "Plug 'tsony-tsonev/nerdtree-git-plugin' @@ -13,9 +12,11 @@ Plug 'airblade/vim-gitgutter' Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'preservim/nerdcommenter' +Plug 'sheerun/vim-polyglot' +Plug 'turbio/bracey.vim', {'do': 'npm install --prefix server'} Plug 'luochen1990/rainbow' Plug 'yaegassy/coc-volar' -"Plug 'prettier/vim-prettier', { 'do': 'yarn install' } +Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } "Plug 'christoomey/vim-tmux-navigator' @@ -33,6 +34,9 @@ autocmd VimEnter * NERDTree " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif +" set bracey/liveserver to resresh on save +let g:bracey_refresh_on_save = 1 + "set colored brackets via rainbow" let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle" @@ -76,8 +80,12 @@ let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclu noremap j (v:count == 0 ? 'gj' : 'j') noremap k (v:count == 0 ? 'gk' : 'k') -set relativenumber +"set relativenumber +set number +set ttyfast +set mouse=a +set autoindent set smarttab set cindent set tabstop=2