Skip to content

Commit

Permalink
Commit to update to https://youtu.be/rAiem1Hg8qA
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Jan 26, 2018
1 parent 657e9c8 commit e3e6a14
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 18 deletions.
1 change: 1 addition & 0 deletions .bashrc
Expand Up @@ -19,6 +19,7 @@ fi

umask 002

alias nt='st -e bash -c "cd $PWD; exec bash" &'
alias ll='ls -alh --group-directories-first --color=always'
alias ac="/usr/bin/vim ~/private/accounts"
alias suspend='sudo systemctl suspend'
Expand Down
31 changes: 19 additions & 12 deletions .config/nvim/init.vim
Expand Up @@ -35,31 +35,24 @@ autocmd Filetype javascript setlocal sw=2 sts=2 expandtab

call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'sbdchd/neoformat'
Plug 'w0rp/ale'
Plug 'srstevenson/vim-picker'
Plug 'SirVer/ultisnips'
Plug 'tpope/vim-commentary'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-go', { 'do': 'make'}
"Plug 'jodosha/vim-godebug'
Plug 'posva/vim-vue'
"Plug 'ternjs/tern_for_vim', { 'do': 'npm install' }
call plug#end()

let g:deoplete#enable_at_startup = 1
let g:go_fmt_command = "goimports"
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" tern
if exists('g:plugs["tern_for_vim"]')
let g:tern_show_argument_hints = 'on_hold'
let g:tern_show_signature_in_pum = 1
autocmd FileType javascript setlocal omnifunc=tern#Complete
endif

let g:go_metalinter_autosave = 1
let g:go_auto_type_info = 1
let g:go_auto_sameids = 1


autocmd Filetype vue setlocal sw=2 sts=2 expandtab

set wildmode=longest,list,full
Expand All @@ -69,6 +62,20 @@ let g:ale_fixers = {
\ 'javascript': ['eslint'],
\}
let g:ale_fixers = {'vue': ['eslint']}
" nnoremap <leader>f :ALEFix<CR>
let g:ale_fix_on_save = 1
let g:ale_completion_enabled = 1

nmap <unique> <leader>s <Plug>PickerSplit

" run :GoBuild or :GoTestCompile based on the go file
function! s:build_go_files()
let l:file = expand('%')
if l:file =~# '^\f\+_test\.go$'
call go#test#Test(0, 1)
elseif l:file =~# '^\f\+\.go$'
call go#cmd#Build(0)
endif
endfunction

autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR>
Binary file modified .terminfo/s/st
Binary file not shown.
Binary file modified .terminfo/s/st-256color
Binary file not shown.
Binary file modified .terminfo/s/st-meta
Binary file not shown.
Binary file modified .terminfo/s/st-meta-256color
Binary file not shown.
5 changes: 3 additions & 2 deletions .tmux.conf
Expand Up @@ -4,7 +4,8 @@ bind-key C-a send-prefix
set -g exit-unattached on
set -g destroy-unattached on
set -g status off
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
bind-key -n C-f copy-mode \; send-key ?
set -g default-terminal "st-256color"
set -g history-limit 20000
set-option -sg escape-time 10
set-option -sg escape-time 0
1 change: 1 addition & 0 deletions .vimrc
Expand Up @@ -50,6 +50,7 @@ cmap w!! w !sudo tee > /dev/null %
" Using tabless https://www.npmjs.com/package/standard
autocmd Filetype javascript setlocal sw=2 sts=2 expandtab
autocmd Filetype vue setlocal sw=2 sts=2 expandtab

set autowrite
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']
Expand Down
2 changes: 1 addition & 1 deletion bin/code
@@ -1,2 +1,2 @@
#!/bin/bash
/usr/bin/code --high-dpi-support=true --force-device-scale-factor=1.5 "$@"
/usr/bin/code-oss --high-dpi-support=true --force-device-scale-factor=1.5 "$@"
4 changes: 1 addition & 3 deletions bin/stress-test.sh
Expand Up @@ -4,9 +4,7 @@

CONCURRENCY=4
REQUESTS=100
#ADDRESS="http://localhost:9000/"
#ADDRESS="http://count.dabase.com:9000/"
ADDRESS="https://count.dabase.com/"
ADDRESS="https://count.webconverger.com/"

show_help() {
cat << EOF
Expand Down

0 comments on commit e3e6a14

Please sign in to comment.