Compare commits
No commits in common. "b98b3229dfd98cf4c0cb1476bcbd322fdc266420" and "1156d76cbe2c41e8c1b8bb20f660cf78c7fa5606" have entirely different histories.
b98b3229df
...
1156d76cbe
1
Makefile
1
Makefile
@ -2,6 +2,7 @@ default: install
|
||||
|
||||
install: prereqs
|
||||
cat ./profile.sh > $(HOME)/.profile
|
||||
rsync -avP ./home/ $(HOME)/
|
||||
bash setup.sh
|
||||
|
||||
prereqs:
|
||||
|
@ -4,25 +4,37 @@ let mapleader=","
|
||||
|
||||
let g:go_version_warning = 0
|
||||
|
||||
silent !mkdir -p ~/.vim/plug > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.vim/backup > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.vim/swap > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.vim/autoload > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.vim/plugged > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/plug > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/backup > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/undo > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/swap > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/autoload > /dev/null 2>&1
|
||||
silent !mkdir -p ~/.nvim/plugged > /dev/null 2>&1
|
||||
|
||||
|
||||
"let g:go_version_warning = 0
|
||||
" amazon linux 2 epel has old nvim, this is required:
|
||||
let g:go_version_warning = 0
|
||||
|
||||
if empty(glob('~/.vim/plug/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/plug/plug.vim --create-dirs
|
||||
if empty(glob('~/.nvim/plug/plug.vim'))
|
||||
silent !curl -fLo ~/.nvim/plug/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
source ~/.vim/plug/plug.vim
|
||||
source ~/.nvim/plug/plug.vim
|
||||
|
||||
call plug#begin('~/.vim/plug')
|
||||
"Plug 'zchee/deoplete-go', { 'for': 'go' }
|
||||
"Plug 'zchee/deoplete-jedi', { 'for': 'python' }
|
||||
|
||||
call plug#begin('~/.nvim/plug')
|
||||
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
endif
|
||||
|
||||
Plug 'nathanaelkane/vim-indent-guides'
|
||||
let g:indent_guides_enable_on_vim_startup = 1
|
||||
@ -30,8 +42,8 @@ let g:indent_guides_enable_on_vim_startup = 1
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
"Plug 'vim-airline/vim-airline'
|
||||
"Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
||||
Plug 'prettier/vim-prettier', {
|
||||
\ 'do': 'yarn install',
|
||||
@ -41,10 +53,10 @@ let g:prettier#autoformat = 1
|
||||
let g:prettier#autoformat_require_pragma = 0
|
||||
|
||||
|
||||
Plug 'fatih/molokai'
|
||||
"Plug 'morhetz/gruvbox'
|
||||
"Plug 'fatih/molokai'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'sbdchd/neoformat'
|
||||
"Plug 'LnL7/vim-nix'
|
||||
Plug 'LnL7/vim-nix'
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" syntastic
|
||||
@ -67,7 +79,7 @@ let g:rehash256 = 1
|
||||
let g:molokai_original = 1
|
||||
let g:gruvbox_italic = 1
|
||||
"colorscheme molokai
|
||||
"colorscheme gruvbox
|
||||
colorscheme gruvbox
|
||||
|
||||
noremap <Leader>w :w<cr>
|
||||
noremap <Leader><cr> i<cr><Esc>
|
||||
@ -92,7 +104,7 @@ let g:go_info_mode='gopls'
|
||||
let g:go_auto_type_info = 1
|
||||
|
||||
|
||||
highlight SyntasticErrorSign guifg=white guibg=red
|
||||
"highlight SyntasticErrorSign guifg=white guibg=red
|
||||
|
||||
"Plug 'scrooloose/nerdtree'
|
||||
"Plug 'ludovicchabant/vim-gutentags'
|
||||
@ -107,17 +119,17 @@ let g:gutentags_generate_on_new = 1
|
||||
"call plug#end()
|
||||
|
||||
|
||||
"let g:airline_powerline_fonts = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
"if !exists('g:airline_symbols')
|
||||
" let g:airline_symbols = {}
|
||||
"endif
|
||||
if !exists('g:airline_symbols')
|
||||
let g:airline_symbols = {}
|
||||
endif
|
||||
|
||||
" unicode symbols
|
||||
" let g:airline_left_sep = '▶'
|
||||
" let g:airline_right_sep = '◀'
|
||||
" let g:airline_symbols.crypt = '🔒'
|
||||
" let g:airline_symbols.linenr = '☰'
|
||||
let g:airline_symbols.crypt = '🔒'
|
||||
let g:airline_symbols.linenr = '☰'
|
||||
" let g:airline_symbols.linenr = '␊'
|
||||
" let g:airline_symbols.linenr = ''
|
||||
" let g:airline_symbols.linenr = '¶'
|
||||
@ -181,10 +193,10 @@ set autoindent
|
||||
"set signcolumn=yes
|
||||
set backspace=indent,eol,start
|
||||
set backup
|
||||
set backupdir=~/.vim/backup//
|
||||
set backupdir=~/.nvim/backup//
|
||||
set cmdheight=3
|
||||
"set clipboard=unnamed
|
||||
set directory=~/.vim/swap//
|
||||
set directory=~/.nvim/swap//
|
||||
set encoding=utf-8
|
||||
set expandtab
|
||||
set fileencodings=utf-8
|
||||
@ -200,13 +212,13 @@ set showcmd
|
||||
set smartcase
|
||||
set smarttab
|
||||
set softtabstop=4
|
||||
set spellfile=~/.vim/spellfile.utf-8.add
|
||||
set spellfile=~/.nvim/spellfile.utf-8.add
|
||||
set spelllang=en
|
||||
set tabstop=4
|
||||
set termencoding=utf-8
|
||||
set ttyfast
|
||||
set tw=76
|
||||
set undodir=~/.vim/undo//
|
||||
set undodir=~/.nvim/undo//
|
||||
set undofile
|
||||
set wildignore+=*.pyc
|
||||
set writebackup
|
@ -1,3 +1,6 @@
|
||||
alias vim="nvim"
|
||||
alias vi="nvim"
|
||||
|
||||
export GOPATH="/usr/local/go"
|
||||
if [[ ! -d $GOPATH ]]; then
|
||||
sudo mkdir -p $GOPATH
|
||||
@ -5,5 +8,4 @@ if [[ ! -d $GOPATH ]]; then
|
||||
fi
|
||||
|
||||
export PATH="$PATH:$HOME/bin"
|
||||
export PATH="$PATH:$HOME/.yarn/bin"
|
||||
_byobu_sourced=1 . /usr/bin/byobu-launch
|
||||
|
17
setup.sh
17
setup.sh
@ -4,7 +4,8 @@ source ./profile.sh
|
||||
PKGS="
|
||||
byobu
|
||||
go
|
||||
vim
|
||||
neovim
|
||||
node
|
||||
"
|
||||
sudo amazon-linux-extras install epel -y
|
||||
sudo amazon-linux-extras install docker -y
|
||||
@ -12,20 +13,12 @@ sudo yum -y install $PKGS
|
||||
sudo yum upgrade -y
|
||||
|
||||
|
||||
export GOPATH=/usr/local/go
|
||||
sudo chown -Rv $(whoami):$(whoami) $GOPATH
|
||||
rm -rf $HOME/go
|
||||
|
||||
rsync -avP ./home/ $HOME/
|
||||
|
||||
sudo npm install -g yarn
|
||||
|
||||
yarn global add prettier
|
||||
|
||||
# setup vim
|
||||
echo "" | vim +PlugInstall +qall
|
||||
vim +GoInstallBinaries +qall
|
||||
vim +PlugInstall +qall
|
||||
echo "" | nvim +PlugInstall +qall
|
||||
nvim +GoInstallBinaries +qall
|
||||
nvim +PlugInstall +qall
|
||||
|
||||
# configure byobu
|
||||
byobu-launcher-install
|
||||
|
Loading…
Reference in New Issue
Block a user