Skip to content

Commit

Permalink
Update 18/2/17
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekreeki committed Feb 18, 2017
1 parent 8cac20b commit d3e1baa
Show file tree
Hide file tree
Showing 9 changed files with 7,525 additions and 19 deletions.
7 changes: 5 additions & 2 deletions .aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ alias gbf='git branch | cut -c3- | fzf | xargs git checkout'
alias gcl='git clone'
alias gco='git checkout'

alias gd='git diff --color $@ | diff-so-fancy | less --tabs=1,5 -RFX'
alias gdc='git diff --cached --color $@ | diff-so-fancy | less --tabs=1,5 -RFX'
alias gd='git diff --color $@'
alias gdc='git diff --cached --color $@'
alias gdm='git diff master..HEAD'

alias gci='git commit'
Expand Down Expand Up @@ -55,3 +55,6 @@ alias spring='nocorrect spring'

# REACT NATIVE
alias packager='./node_modules/react-native/packager/packager.sh'

# Dokku
alias dokku='$HOME/.dokku/contrib/dokku_client.sh'
4 changes: 4 additions & 0 deletions .exports.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ export NVIM_TUI_ENABLE_CURSOR_SHAPE=1

# Homebrew installed android-sdk
export ANDROID_HOME=/usr/local/opt/android-sdk

# Java/JRUBY
export JAVA_OPTS="-XX:-UseConcMarkSweepGC"
export JRUBY_OPTS="-J-Xmx4g"
4 changes: 3 additions & 1 deletion .functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ magic-enter () {
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
echo -ne '\n'
git status -s
else
lsa
fi
zle accept-line
else
Expand All @@ -37,7 +39,7 @@ zle -N magic-enter
bindkey "^M" magic-enter

f() {
eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s | sed 's/ *[0-9]* *//')
eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//')
}
fe() {
Expand Down
1 change: 1 addition & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

[core]
excludesfile = ~/.dotfiles/git/.gitignore
pager = diff-so-fancy | less --tabs=1,5 -RFX

[branch]
autosetuprebase = always
Expand Down
46 changes: 37 additions & 9 deletions .nvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ call plug#begin('~/.nvim/plugged')
Plug 'corntrace/bufexplorer'
Plug 'gorkunov/smartgf.vim'
Plug 'kien/ctrlp.vim'
Plug 'jasoncodes/ctrlp-modified.vim'
Plug 'scrooloose/nerdtree'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'tpope/vim-unimpaired'
Expand All @@ -14,9 +15,11 @@ Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'inkarkat/SyntaxAttr.vim'
Plug 'milkypostman/vim-togglelist'
Plug 'regedarek/ZoomWin'
Plug 'tpope/vim-rsi'
Plug 'gorodinskiy/vim-coloresque'
Plug 'itchyny/vim-cursorword'
" Plug 'romainl/vim-qf'
Plug 'pmalek/toogle-maximize.vim'

" Searching
Plug 'Lokaltog/vim-easymotion'
Expand All @@ -25,6 +28,7 @@ Plug 'mhinz/vim-grepper'
Plug 'osyo-manga/vim-over'
Plug 'dkprice/vim-easygrep'
Plug 'nelstrom/vim-qargs'
Plug 'brooth/far.vim'

" Autocomplete
Plug 'Shougo/context_filetype.vim'
Expand Down Expand Up @@ -68,6 +72,7 @@ Plug 'tpope/vim-git'
" Building, Linters, Test Runners
Plug 'benekastah/neomake'
Plug 'jaawerth/neomake-local-eslint-first'
Plug 'sbdchd/neoformat'
Plug 'janko-m/vim-test'

" Ruby Integration
Expand All @@ -83,11 +88,13 @@ Plug 'tpope/vim-rvm'
" JavaScript Integration
Plug 'elzr/vim-json'
Plug 'gavocanov/vim-js-indent'
Plug 'mlaursen/vim-react-snippets'
Plug 'bentayloruk/vim-react-es6-snippets'
Plug 'mustache/vim-mustache-handlebars'
Plug 'othree/yajs.vim'
Plug 'othree/es.next.syntax.vim'
" Plug 'othree/yajs.vim'
Plug 'pangloss/vim-javascript'
" Plug 'othree/es.next.syntax.vim'
Plug 'mxw/vim-jsx'
" Plug 'flowtype/vim-flow'
Plug 'othree/jspc.vim'
Plug 'jparise/vim-graphql'
Plug 'heavenshell/vim-jsdoc'
Expand All @@ -106,7 +113,8 @@ Plug 'xolox/vim-notes'
Plug 'kassio/neoterm'

" Colorschemes
Plug 'mikekreeki/mikekreeki-colors.vim'
" Plug 'mikekreeki/mikekreeki-colors.vim'
Plug '~/Projects/mikekreeki-colors.vim'

call plug#end()

Expand Down Expand Up @@ -319,7 +327,8 @@ augroup neomake_config

let g:neomake_javascript_enabled_makers = ['eslint']
let g:neomake_jsx_enabled_makers = ['eslint']
let g:neomake_ruby_enabled_makers = ['mri', 'rubocop']

let g:neomake_ruby_enabled_makers = ['rubocop']
let g:neomake_open_list = 0
let g:neomake_verbose = 0

Expand Down Expand Up @@ -509,6 +518,9 @@ augroup ctrlp_config

let g:ctrlp_show_hidden = 1
let g:ctrlp_use_caching=0

nmap <silent> .. :CtrlPBranch<CR>
nmap <silent> -- :CtrlPBranch<CR>
augroup END

augroup airline_config
Expand All @@ -520,13 +532,17 @@ augroup airline_config
let g:airline#extensions#hunks#non_zero_only = 1
let g:airline_section_y=''
let g:airline_section_z=''

let g:airline#extensions#branch#enabled = 0
augroup END

augroup neosnippet_config
autocmd!

" Turn off conceal
let g:neosnippet#enable_conceal_markers = 0
let g:neosnippet#enable_snipmate_compatibility = 1
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-react-es6-snippets/snippets'

autocmd InsertLeave * NeoSnippetClearMarkers

Expand All @@ -552,7 +568,7 @@ augroup neovim_config
tnoremap <a-k> <c-\><c-n><c-w>k
tnoremap <a-l> <c-\><c-n><c-w>l
tnoremap <Esc> <C-\><C-n>
autocmd BufEnter term://* startinsert
" autocmd BufEnter term://* startinsert

let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 1
endif
Expand All @@ -570,6 +586,8 @@ augroup quickfix_config
" Shortcuts for navigating between quickfix results
nnoremap ) :cnext<CR>
nnoremap ú :cprevious<CR>
au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&buftype") == "quickfix"|q|endif
augroup END

augroup cursorline_config
Expand Down Expand Up @@ -606,6 +624,8 @@ augroup test_config
nmap <silent> <leader>g :TestVisit<CR>
let test#base#no_colors = 0
let test#strategy = 'neoterm'
let g:test#preserve_screen = 0
augroup END

augroup trailing_whitespace_config
Expand Down Expand Up @@ -698,6 +718,8 @@ augroup END
augroup javascript_config
autocmd!

let g:flow#enable = 0
let g:javascript_plugin_flow = 1
let g:vim_json_syntax_conceal = 0
let g:jsx_ext_required = 0

Expand Down Expand Up @@ -787,10 +809,10 @@ augroup gitgutter_config
let g:gitgutter_sign_column_always = 1
augroup END

augroup zoomwin_config
augroup toggle_maximize_config
autocmd!

nnoremap <S-CR> :ZoomWin<CR>
autocmd FileType javascript,ruby nnoremap <buffer> <silent> <CR> :call ToggleMaximizeCurrentWindow()<CR>
augroup END

augroup syntax_attr_config
Expand Down Expand Up @@ -825,6 +847,12 @@ augroup polyglot_config
let g:polyglot_disabled = ['javascript', 'jsx', 'ruby']
augroup END

augroup cursorword_config
autocmd!

autocmd FileType qf let b:cursorword = 0
augroup END

augroup reload_vimrc_config
autocmd!

Expand Down
2 changes: 1 addition & 1 deletion .oh-my-zsh.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ HIST_STAMPS="mm/dd/yyyy"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git bundler zsh-syntax-highlighting)
plugins=(git bundler zsh-syntax-highlighting zsh-nvm)

# Compilation flags
# export ARCHFLAGS="-arch x86_64"
Expand Down
2 changes: 2 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ source ~/.dotfiles/.setopt.zsh
source ~/.dotfiles/.custom.zsh
source ~/.dotfiles/mikekreeki.zsh-theme

WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'

test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh
[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn

Expand Down
Loading

0 comments on commit d3e1baa

Please sign in to comment.