Update vimrc and zshrc

This commit is contained in:
Rob Watson 2021-03-19 15:03:28 +01:00
parent 4d7e9a21e3
commit 5702140b6b
2 changed files with 12 additions and 8 deletions

18
vimrc
View File

@ -80,7 +80,7 @@ endif
" Colour scheme:
packadd! gruvbox
let g:gruvbox_contrast_dark='medium'
let g:gruvbox_contrast_light='medium'
let g:gruvbox_contrast_light='soft'
let g:gruvbox_improved_strings=1
let g:gruvbox_improved_warnings=1
let g:gruvbox_vert_split='bg2'
@ -244,7 +244,7 @@ packadd! echodoc.vim
" ALE configuration:
nmap [L <Plug>(ale_first)
nmap ]L <Plug(ale_last)
nmap ]L <Plug>(ale_last)
nmap [e <Plug>(ale_previous_wrap_error)
nmap ]e <Plug>(ale_next_wrap_error)
nmap [w <Plug>(ale_previous_wrap)
@ -281,12 +281,14 @@ let g:ale_rust_analyzer_config = {
\ 'checkOnSave': { 'command': 'clippy', 'enable': v:true },
\ }
let g:ale_go_goimports_options = '-local github.com/sensiblecodeio/cantabular'
let g:ale_go_gopls_init_options = {'ui.diagnostic.analyses': {
\ 'composites': v:false,
\ 'unusedparams': v:true,
\ 'unusedresult': v:true,
\ 'shadow': v:true,
\ }}
let g:ale_go_gopls_init_options = {
\ 'ui.diagnostic.analyses': {
\ 'composites': v:false,
\ 'unusedparams': v:true,
\ 'unusedresult': v:true,
\ 'shadow': v:true,
\ },
\ 'staticcheck': v:true}
" let g:ale_command_wrapper = 'nice -n5'
let g:ale_completion_enabled = 0
let g:ale_close_preview_on_insert = 1

2
zshrc
View File

@ -127,6 +127,8 @@ git config --global alias.st status
git config --global alias.br branch
# Other aliases
alias c.="cd .."
alias c-="cd -"
alias ll="exa -l --group-directories-first --git"
alias sysc="systemctl"
alias hib="sudo systemctl hibernate"