From 769cde53a979284d7b4df8a37b1e0d8d3a8fcd72 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 8 Apr 2018 17:48:49 +0200 Subject: [PATCH] Prompt config and ALE settings --- .config/nvim/init.vim | 20 ++++++++++++++++++-- .zshrc | 13 +++++++------ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5fd06eb..8020a98 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -306,7 +306,20 @@ au FileType xml "" fzf 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 @@ -451,10 +464,13 @@ let g:ale_sign_column_always = 1 " 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': ['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_warning = '⚠' let g:airline#extensions#ale#enabled = 1 +let g:go_gometalinter_options = join([ + \ '--fast' + \ ], ' ') "" Neosnippet " imap (neosnippet_expand_or_jump) diff --git a/.zshrc b/.zshrc index faf3f52..7dd0cfd 100644 --- a/.zshrc +++ b/.zshrc @@ -26,6 +26,13 @@ export ZSH_HIGHLIGHT_STYLES[command]='fg=155' export ZSH_HIGHLIGHT_STYLES[function]='fg=155' 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 share_history @@ -110,12 +117,6 @@ function _dln_prompt_right { 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 {