if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif let g:pyxversion = 'python3' set number set relativenumber set tabstop=4 set shiftwidth=4 set smarttab set expandtab set hidden set showtabline=1 set termguicolors set ttyfast set wildmenu set title set list set listchars=tab:→\ ,eol:¬,trail:•,extends:❯,precedes:❮,space:⨪ set showbreak=↪ set timeoutlen=500 let g:mapleader="\" let g:maplocallead=',' if has('nvim') set inccommand=split endif if has("persistent_undo") set undodir=$HOME/.undodir set undofile endif call plug#begin('~/.config/nvim/plugged') "LSP Stuff Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'junegunn/rainbow_parentheses.vim' Plug 'machakann/vim-highlightedyank' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'morhetz/gruvbox' Plug 'arzg/vim-corvine' Plug 'tpope/vim-fugitive' Plug 'mhinz/vim-signify' Plug 'tpope/vim-commentary' Plug 'mbbill/undotree' Plug 'elmcast/elm-vim' Plug 'liuchengxu/vim-which-key' "async.vim Plug 'prabirshrestha/async.vim' "https://github.com/baverman/vial-http/blob/master/doc/tutorial.rst "Plug 'baverman/vial' "Plug 'baverman/vial-http' call plug#end() inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\u\" function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction inoremap coc#refresh() autocmd CursorHold * silent call CocActionAsync('highlight') command! -nargs=0 Format :call CocAction('format') set background=dark colorscheme corvine "Airline settings let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#formatter = 'unique_tail_improved' let g:airline_theme='base16_tomorrow' nnoremap u :UndotreeToggle nnoremap h nnoremap j nnoremap k nnoremap l nnoremap n :nohl nnoremap nnoremap "Coc Keymaps and options nnoremap d :call CocAction('jumpDefinition') nnoremap g :call CocAction('jumpTypeDefinition') "which-key let g:which_key_map = {} autocmd! User vim-which-key call which_key#register('', 'g:which_key_map') let g:which_key_map[' '] = { \ 'name' : '+CoC' , \ 'd' : 'go-to-definition' , \ 'g' : 'go-to-type-definition' , \ } call which_key#register('', "g:which_key_map") nnoremap :WhichKey '' nnoremap :WhichKey ',' "rainbow-parens autocmd VimEnter * RainbowParentheses let g:rainbow#blacklist = [248] let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]