diff --git a/README.md b/README.md index b707c6aa..c3f26504 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ function! s:on_lsp_buffer_enabled() abort nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) - inoremap lsp#scroll(+4) - inoremap lsp#scroll(-4) + nnoremap lsp#scroll(+4) + nnoremap lsp#scroll(-4) let g:lsp_format_sync_timeout = 1000 autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') diff --git a/doc/vim-lsp.txt b/doc/vim-lsp.txt index 30135289..0655594b 100644 --- a/doc/vim-lsp.txt +++ b/doc/vim-lsp.txt @@ -1439,8 +1439,8 @@ lsp#scroll(count) *lsp#scroll()* Scroll current displayed floating/popup window with specified count. Example: > - inoremap lsp#scroll(+4) - inoremap lsp#scroll(-4) + nnoremap lsp#scroll(+4) + nnoremap lsp#scroll(-4) ============================================================================== Commands *vim-lsp-commands*