vim updates

This commit is contained in:
Rob Watson 2021-01-29 14:53:15 +01:00
parent 566a80cb30
commit b67374e032
2 changed files with 10 additions and 8 deletions

View File

@ -30,7 +30,7 @@ let g:go_gopls_analyses = {
\ 'composites': v:false, \ 'composites': v:false,
\ } \ }
let g:go_fmt_options = { let g:go_fmt_options = {
\ 'goimports': '-local github.com/sensiblecode.com/cantabular', \ 'goimports': '-local github.com/sensiblecodeio/cantabular',
\ } \ }
autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl autocmd BufNewFile,BufRead *.gohtml set syntax=gohtmltmpl

16
vimrc
View File

@ -133,6 +133,9 @@ map <Leader>8 :call RequestGrep()<CR>
packadd! deoplete.nvim packadd! deoplete.nvim
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
call deoplete#custom#option('num_processes', 6) call deoplete#custom#option('num_processes', 6)
call deoplete#custom#option('max_list', 20)
call deoplete#custom#option('auto_complete_delay', 10)
call deoplete#custom#option('auto_refresh_delay', 10)
" https://github.com/Shougo/deoplete.nvim/issues/965#issuecomment-482925193 " https://github.com/Shougo/deoplete.nvim/issues/965#issuecomment-482925193
" Seems to be causing autocomplete issues so removing for now. " Seems to be causing autocomplete issues so removing for now.
" call deoplete#custom#option('omni_patterns', { " call deoplete#custom#option('omni_patterns', {
@ -179,12 +182,11 @@ function SymbolSearch()
endif endif
endfunction endfunction
map <Leader>ss :call SymbolSearch()<CR> map <Leader>ss :call SymbolSearch()<CR>
nmap <silent> <leader>af :ALEFirst<cr> nmap [L <Plug>(ale_first)
nmap <silent> <leader>al :ALELast<cr> nmap ]L <Plug(ale_last)
nmap <silent> <leader>an :ALENextWrap<cr> nmap [l <Plug>(ale_previous_wrap_error)
nmap <silent> <leader>ap :ALEPreviousWrap<cr> nmap ]l <Plug>(ale_next_wrap_error)
nmap <silent> <leader>aN :ALENext -error<cr>
nmap <silent> <leader>aP :ALEPrevious -error<cr>
nmap <leader>ad :ALEDetail<cr> nmap <leader>ad :ALEDetail<cr>
map <Leader>g :ALEGoToDefinition<CR> map <Leader>g :ALEGoToDefinition<CR>
map <Leader>gt :ALEGoToTypeDefinition<CR> map <Leader>gt :ALEGoToTypeDefinition<CR>
@ -204,7 +206,7 @@ let g:ale_lint_on_enter = 1
let g:ale_lint_on_insert_leave = 1 let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_save = 1 let g:ale_lint_on_save = 1
let g:ale_echo_cursor = 1 let g:ale_echo_cursor = 1
let g:ale_lint_delay = 50 let g:ale_lint_delay = 100
let g:ale_set_balloons = 1 let g:ale_set_balloons = 1
" NOTE: Needs https://github.com/dense-analysis/ale/issues/3350 " NOTE: Needs https://github.com/dense-analysis/ale/issues/3350
let g:ale_rust_analyzer_config = { let g:ale_rust_analyzer_config = {