Update vimrc and zshrc

This commit is contained in:
Rob Watson 2021-01-25 09:24:13 +01:00
parent cc00f6aa9f
commit ddf61e28b6
2 changed files with 4 additions and 2 deletions

3
vimrc
View File

@ -163,6 +163,7 @@ let g:go_fmt_options = {
\ 'goimports': '-local github.com/sensiblecode.com/cantabular',
\ }
autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl
autocmd BufNewFile,BufRead *.go nmap <silent> <leader>g6 :GoAlternate!<cr>
" https://github.com/golang/tools/blob/master/gopls/doc/vim.md#vim-go
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'
@ -171,8 +172,6 @@ let g:go_info_mode='gopls'
let g:rustfmt_autosave = 1
" ALE configuration:
" Note: needs https://github.com/dense-analysis/ale/issues/3373
" to avoid "json decode error" during deoplete resolution.
function SymbolSearch()
call inputsave()
let s:pattern = trim(input("symbol search: "))

3
zshrc
View File

@ -154,6 +154,9 @@ fi
# For Ubuntu, disable Caps-Lock:
setxkbmap -option caps:none
# Set zshfunctions dir as per https://github.com/alacritty/alacritty/blob/master/INSTALL.md#debianubuntu
fpath+=${ZDOTDIR:-~}/.zsh_functions
# Vim keymap
bindkey -v
bindkey '^P' up-history