Prompt config and ALE settings
This commit is contained in:
parent
467874f70d
commit
769cde53a9
2 changed files with 25 additions and 8 deletions
|
@ -306,7 +306,20 @@ au FileType xml
|
||||||
"" fzf
|
"" fzf
|
||||||
|
|
||||||
let g:fzf_layout = { 'up': '~40%' }
|
let g:fzf_layout = { 'up': '~40%' }
|
||||||
|
let g:fzf_colors =
|
||||||
|
\ { 'fg': ['fg', 'Comment'],
|
||||||
|
\ 'bg': ['bg', 'Comment'],
|
||||||
|
\ 'hl': ['fg', 'Comment'],
|
||||||
|
\ 'fg+': ['fg', 'PMenuSel', 'PMenuSel', 'Normal'],
|
||||||
|
\ 'bg+': ['bg', 'PMenuSel', 'PMenuSel'],
|
||||||
|
\ 'hl+': ['fg', 'Statement'],
|
||||||
|
\ 'info': ['fg', 'PreProc'],
|
||||||
|
\ 'border': ['fg', 'Ignore'],
|
||||||
|
\ 'prompt': ['fg', 'Conditional'],
|
||||||
|
\ 'pointer': ['fg', 'Exception'],
|
||||||
|
\ 'marker': ['fg', 'Keyword'],
|
||||||
|
\ 'spinner': ['fg', 'Label'],
|
||||||
|
\ 'header': ['fg', 'Normal'] }
|
||||||
|
|
||||||
""
|
""
|
||||||
"" Color theme
|
"" Color theme
|
||||||
|
@ -451,10 +464,13 @@ let g:ale_sign_column_always = 1
|
||||||
" let g:ale_linters = {'go': ['gofmt']}
|
" let g:ale_linters = {'go': ['gofmt']}
|
||||||
" let g:ale_linters = {'go': ['go build', 'gofmt', 'golint', 'gometalinter', 'gosimple', 'go vet', 'staticcheck']}
|
" let g:ale_linters = {'go': ['go build', 'gofmt', 'golint', 'gometalinter', 'gosimple', 'go vet', 'staticcheck']}
|
||||||
" let g:ale_linters = {'go': ['gofmt', 'golint', 'gometalinter', 'gosimple', 'go vet', 'staticcheck']}
|
" let g:ale_linters = {'go': ['gofmt', 'golint', 'gometalinter', 'gosimple', 'go vet', 'staticcheck']}
|
||||||
let g:ale_linters = {'go': ['gofmt', 'golint', 'gometalinter', 'gosimple', 'go vet']}
|
let g:ale_linters = {'go': ['gofmt', 'gometalinter']}
|
||||||
let g:ale_sign_error = '⤫'
|
let g:ale_sign_error = '⤫'
|
||||||
let g:ale_sign_warning = '⚠'
|
let g:ale_sign_warning = '⚠'
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
|
let g:go_gometalinter_options = join([
|
||||||
|
\ '--fast'
|
||||||
|
\ ], ' ')
|
||||||
|
|
||||||
"" Neosnippet
|
"" Neosnippet
|
||||||
" imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
" imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||||
|
|
13
.zshrc
13
.zshrc
|
@ -26,6 +26,13 @@ export ZSH_HIGHLIGHT_STYLES[command]='fg=155'
|
||||||
export ZSH_HIGHLIGHT_STYLES[function]='fg=155'
|
export ZSH_HIGHLIGHT_STYLES[function]='fg=155'
|
||||||
export ZSH_HIGHLIGHT_STYLES[path]='fg=116'
|
export ZSH_HIGHLIGHT_STYLES[path]='fg=116'
|
||||||
|
|
||||||
|
export PROMPT_LEAN_COLOR1=78
|
||||||
|
export PROMPT_LEAN_COLOR2=67
|
||||||
|
export PROMPT_LEAN_TMUX=""
|
||||||
|
export PROMPT_LEAN_PATH_PERCENT=50
|
||||||
|
export PROMPT_LEAN_LEFT=_dln_prompt_left
|
||||||
|
# export PROMPT_LEAN_RIGHT=_dln_prompt_right
|
||||||
|
|
||||||
setopt append_history
|
setopt append_history
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
|
||||||
|
@ -110,12 +117,6 @@ function _dln_prompt_right {
|
||||||
echo -e " %{\e[38;5;16;48;5;30m%} ${_tmux_win} %{\e[0m%}"
|
echo -e " %{\e[38;5;16;48;5;30m%} ${_tmux_win} %{\e[0m%}"
|
||||||
}
|
}
|
||||||
|
|
||||||
export PROMPT_LEAN_COLOR1=78
|
|
||||||
export PROMPT_LEAN_COLOR2=67
|
|
||||||
export PROMPT_LEAN_TMUX=" "
|
|
||||||
export PROMPT_LEAN_PATH_PERCENT=50
|
|
||||||
export PROMPT_LEAN_LEFT=_dln_prompt_left
|
|
||||||
# export PROMPT_LEAN_RIGHT=_dln_prompt_right
|
|
||||||
|
|
||||||
|
|
||||||
function prompt_command {
|
function prompt_command {
|
||||||
|
|
Loading…
Reference in a new issue