From: Sergey Matveev Date: Tue, 14 Jul 2020 08:19:49 +0000 (+0300) Subject: Use omni-completion instead of asyncomplete-plug X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=66cddd290fccf8b219d8590b07a6292ec4204434 Use omni-completion instead of asyncomplete-plug --- diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 621548b..f951f36 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,12 +1,12 @@ let g:asyncomplete_auto_completeopt = 0 let g:asyncomplete_auto_popup = 0 -imap (asyncomplete_force_refresh) let g:lsp_highlight_references_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 let g:lsp_diagnostics_echo_delay = -1 function! s:on_lsp_buffer_enabled() abort + setlocal omnifunc=lsp#complete nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap gd (lsp-definition) diff --git a/vim/.vimrc b/vim/.vimrc index d44abc3..dd63405 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -154,6 +154,7 @@ cmap map Q gq map Y y$ cmap ][ '[,'] +imap nmap :set wrap!:set wrap? nmap :buffers:b nmap :registers