From 137b9205122b3830073dd9aa855571f0dce6ffe0 Mon Sep 17 00:00:00 2001 From: Tyrel Souza <923113+tyrelsouza@users.noreply.github.com> Date: Fri, 29 Oct 2021 16:31:28 -0400 Subject: [PATCH] update init, remove old plugins and configs --- config/nvim/init.vim | 87 ++++++++++---------------------------------- 1 file changed, 19 insertions(+), 68 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 52adde4..5ffdfbd 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -1,47 +1,31 @@ +syntax enable let mapleader = " " call plug#begin('~/.vim/plugged') - if has('nvim') - Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } - else - Plug 'Shougo/deoplete.nvim' - Plug 'roxma/nvim-yarp' - Plug 'roxma/vim-hug-neovim-rpc' - endif - let g:deoplete#enable_at_startup = 1 - Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} - Plug 'xolox/vim-misc' - Plug 'micha/vim-colors-solarized' - Plug 'neoclide/coc.nvim', {'branch': 'release'} - Plug 'airblade/vim-gitgutter' + Plug 'ervandew/supertab' + Plug 'dracula/vim', { 'as': 'dracula' } + Plug 'preservim/nerdtree' + Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } + Plug 'junegunn/fzf.vim' + Plug 'mhinz/vim-startify' + Plug 'jeetsukumaran/vim-buffergator' + Plug 'ap/vim-buftabline' + Plug 'airblade/vim-gitgutter' Plug 'majutsushi/tagbar' Plug 'vim-airline/vim-airline' - Plug 'ctrlpvim/ctrlp.vim' - Plug 'wincent/command-t' - Plug 'mattn/emmet-vim' - Plug 'itchyny/calendar.vim' - Plug 'houtsnip/vim-emacscommandline' - Plug 'mhinz/vim-startify' - Plug 'jeetsukumaran/vim-buffergator' - Plug 'reinh/vim-makegreen' - Plug 'tbastos/vim-lua' - Plug 'wolfgangmehner/lua-support' - Plug 'drmingdrmer/vim-indent-lua' - "Plug 'shougo/denite.nvim' - Plug 'rust-lang/rust.vim' - Plug 'ap/vim-buftabline' + Plug 'ctrlpvim/ctrlp.vim' Plug 'enricobacis/vim-airline-clock' - Plug 'davidhalter/jedi-vim' - Plug 'ervandew/supertab' - Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } - Plug 'junegunn/fzf.vim' - Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } - Plug 'wincent/ferret' - Plug 'thoughtbot/vim-rspec' - Plug 'preservim/nerdtree' call plug#end() +map :NERDTreeToggle + set tabstop=2 +set shell=/bin/bash +set shiftwidth=2 +set expandtab +set hidden +set background=dark +colorscheme dracula " Relative numbers and when not in buiffer set absolute numbers set number relativenumber @@ -52,44 +36,11 @@ augroup numbertoggle augroup END " Colors -syntax enable -set background=dark -colorscheme solarized -"Calendar stuff -let g:calendar_google_calendar = 1 -let g:calendar_google_task = 1 - -" Tab stuff -set hidden nnoremap / :Ag nnoremap :bnext nnoremap :bprev -nnoremap L :Lua nmap bq :bp bd # "Clock let g:airline#extensions#clock#format = '%I:%M:%S %X' - -map , :call RunCurrentSpecFile() -map . :call RunAllSpecs() - -set shiftwidth=2 -set tabstop=2 -set expandtab - -" use for trigger completion and navigate to the next complete item -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~ '\s' -endfunction -let g:coc_node_path = "/home/tyrel/.nvm/versions/node/v12.14.0/bin/node" - -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() - -map :NERDTreeToggle -"close vim if the only window left open is a NERDTree -autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif