From c0ff58e050a655baec30e31caf58b33f6b08c3e2 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 18 Jan 2021 10:14:44 +0100 Subject: [PATCH] Update vimrc and zshrc --- vimrc | 3 +++ zshrc | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index b8e02e2..f6bb491 100644 --- a/vimrc +++ b/vimrc @@ -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: diff --git a/zshrc b/zshrc index 83b0872..ea6356e 100644 --- a/zshrc +++ b/zshrc @@ -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"