From 66cddd290fccf8b219d8590b07a6292ec4204434 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 14 Jul 2020 11:19:49 +0300 Subject: [PATCH] Use omni-completion instead of asyncomplete-plug --- vim/.vim/plugin/lsp.vim | 2 +- vim/.vimrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.44.0