Update vimrc and zshrc

This commit is contained in:
Rob Watson 2021-01-18 10:14:44 +01:00
parent 6e1080302b
commit c0ff58e050
2 changed files with 5 additions and 1 deletions

3
vimrc
View File

@ -213,6 +213,7 @@ 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_options = '' " TODO: composite keys?
let g:ale_command_wrapper = 'nice -n5'
let g:ale_completion_enabled = 1
let g:ale_close_preview_on_insert = 1
@ -224,6 +225,7 @@ let g:ale_linters = {
\ 'go': ['gopls'],
\ 'rust': ['analyzer'],
\ 'css': ['stylelint'],
\ 'python': ['pyls'],
\ }
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
@ -231,6 +233,7 @@ let g:ale_fixers = {
\ 'rust': [],
\ 'go': [],
\ 'css': ['stylelint'],
\ 'python': ['autopep8'],
\ }
" load ALE only after configured:

3
zshrc
View File

@ -112,6 +112,7 @@ export GOPATH=$HOME/go
# set PATHs (highest priority last)
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/local/sbin:$PATH
export PATH=$HOME/local/bin:$PATH
export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
@ -131,7 +132,7 @@ alias hib="sudo systemctl hibernate"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
alias tmkp="tmux kill-pane"
alias tmkw="tmux kill-window"
# TODO add wg
alias updatevimplugins="cd $HOME/.vim/pack/git-plugins && find -maxdepth 2 -type d | xargs -I{} bash -c 'cd {} ; git pull --rebase' ; cd -"
# recursive grep with line numbers and colour, ignoring binary files:
alias gnr="grep -nR -I --color"