From 40b155512b142f2111195d85d4c19de2c424a4f2 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Tue, 4 Jan 2022 00:54:16 -0800 Subject: [PATCH] use nnoremap for scroll since it is usually in normal mode when opening popup (#1161) (#1258) --- README.md | 4 ++-- doc/vim-lsp.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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*