Update vimrc and zshrc
This commit is contained in:
parent
cc00f6aa9f
commit
ddf61e28b6
3
vimrc
3
vimrc
|
@ -163,6 +163,7 @@ let g:go_fmt_options = {
|
||||||
\ 'goimports': '-local github.com/sensiblecode.com/cantabular',
|
\ 'goimports': '-local github.com/sensiblecode.com/cantabular',
|
||||||
\ }
|
\ }
|
||||||
autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl
|
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
|
" https://github.com/golang/tools/blob/master/gopls/doc/vim.md#vim-go
|
||||||
let g:go_def_mode='gopls'
|
let g:go_def_mode='gopls'
|
||||||
let g:go_info_mode='gopls'
|
let g:go_info_mode='gopls'
|
||||||
|
@ -171,8 +172,6 @@ let g:go_info_mode='gopls'
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
|
|
||||||
" ALE configuration:
|
" ALE configuration:
|
||||||
" Note: needs https://github.com/dense-analysis/ale/issues/3373
|
|
||||||
" to avoid "json decode error" during deoplete resolution.
|
|
||||||
function SymbolSearch()
|
function SymbolSearch()
|
||||||
call inputsave()
|
call inputsave()
|
||||||
let s:pattern = trim(input("symbol search: "))
|
let s:pattern = trim(input("symbol search: "))
|
||||||
|
|
3
zshrc
3
zshrc
|
@ -154,6 +154,9 @@ fi
|
||||||
# For Ubuntu, disable Caps-Lock:
|
# For Ubuntu, disable Caps-Lock:
|
||||||
setxkbmap -option caps:none
|
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
|
# Vim keymap
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey '^P' up-history
|
bindkey '^P' up-history
|
||||||
|
|
Loading…
Reference in New Issue