use nnoremap for scroll since it is usually in normal mode when opening popup (#1161) (#1258)

This commit is contained in:
Prabir Shrestha
2022-01-04 00:54:16 -08:00
committed by GitHub
parent d88690844c
commit 40b155512b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ function! s:on_lsp_buffer_enabled() abort
nmap <buffer> [g <plug>(lsp-previous-diagnostic)
nmap <buffer> ]g <plug>(lsp-next-diagnostic)
nmap <buffer> K <plug>(lsp-hover)
inoremap <buffer> <expr><c-f> lsp#scroll(+4)
inoremap <buffer> <expr><c-d> lsp#scroll(-4)
nnoremap <buffer> <expr><c-f> lsp#scroll(+4)
nnoremap <buffer> <expr><c-d> lsp#scroll(-4)
let g:lsp_format_sync_timeout = 1000
autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync')
+2 -2
View File
@@ -1439,8 +1439,8 @@ lsp#scroll(count) *lsp#scroll()*
Scroll current displayed floating/popup window with specified count.
Example: >
inoremap <buffer> <expr><c-f> lsp#scroll(+4)
inoremap <buffer> <expr><c-d> lsp#scroll(-4)
nnoremap <buffer> <expr><c-f> lsp#scroll(+4)
nnoremap <buffer> <expr><c-d> lsp#scroll(-4)
==============================================================================
Commands *vim-lsp-commands*