Update vimrc and zshrc
This commit is contained in:
parent
4d7e9a21e3
commit
5702140b6b
18
vimrc
18
vimrc
|
@ -80,7 +80,7 @@ endif
|
||||||
" Colour scheme:
|
" Colour scheme:
|
||||||
packadd! gruvbox
|
packadd! gruvbox
|
||||||
let g:gruvbox_contrast_dark='medium'
|
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_strings=1
|
||||||
let g:gruvbox_improved_warnings=1
|
let g:gruvbox_improved_warnings=1
|
||||||
let g:gruvbox_vert_split='bg2'
|
let g:gruvbox_vert_split='bg2'
|
||||||
|
@ -244,7 +244,7 @@ packadd! echodoc.vim
|
||||||
|
|
||||||
" ALE configuration:
|
" ALE configuration:
|
||||||
nmap [L <Plug>(ale_first)
|
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_previous_wrap_error)
|
||||||
nmap ]e <Plug>(ale_next_wrap_error)
|
nmap ]e <Plug>(ale_next_wrap_error)
|
||||||
nmap [w <Plug>(ale_previous_wrap)
|
nmap [w <Plug>(ale_previous_wrap)
|
||||||
|
@ -281,12 +281,14 @@ let g:ale_rust_analyzer_config = {
|
||||||
\ 'checkOnSave': { 'command': 'clippy', 'enable': v:true },
|
\ 'checkOnSave': { 'command': 'clippy', 'enable': v:true },
|
||||||
\ }
|
\ }
|
||||||
let g:ale_go_goimports_options = '-local github.com/sensiblecodeio/cantabular'
|
let g:ale_go_goimports_options = '-local github.com/sensiblecodeio/cantabular'
|
||||||
let g:ale_go_gopls_init_options = {'ui.diagnostic.analyses': {
|
let g:ale_go_gopls_init_options = {
|
||||||
\ 'composites': v:false,
|
\ 'ui.diagnostic.analyses': {
|
||||||
\ 'unusedparams': v:true,
|
\ 'composites': v:false,
|
||||||
\ 'unusedresult': v:true,
|
\ 'unusedparams': v:true,
|
||||||
\ 'shadow': v:true,
|
\ 'unusedresult': v:true,
|
||||||
\ }}
|
\ 'shadow': v:true,
|
||||||
|
\ },
|
||||||
|
\ 'staticcheck': v:true}
|
||||||
" let g:ale_command_wrapper = 'nice -n5'
|
" let g:ale_command_wrapper = 'nice -n5'
|
||||||
let g:ale_completion_enabled = 0
|
let g:ale_completion_enabled = 0
|
||||||
let g:ale_close_preview_on_insert = 1
|
let g:ale_close_preview_on_insert = 1
|
||||||
|
|
2
zshrc
2
zshrc
|
@ -127,6 +127,8 @@ git config --global alias.st status
|
||||||
git config --global alias.br branch
|
git config --global alias.br branch
|
||||||
|
|
||||||
# Other aliases
|
# Other aliases
|
||||||
|
alias c.="cd .."
|
||||||
|
alias c-="cd -"
|
||||||
alias ll="exa -l --group-directories-first --git"
|
alias ll="exa -l --group-directories-first --git"
|
||||||
alias sysc="systemctl"
|
alias sysc="systemctl"
|
||||||
alias hib="sudo systemctl hibernate"
|
alias hib="sudo systemctl hibernate"
|
||||||
|
|
Loading…
Reference in New Issue