fix cmp scroll docs keybinds

This commit is contained in:
Ching Pei Yang 2023-07-20 14:02:37 +02:00
parent f3f7082597
commit 507d824731

View file

@ -109,14 +109,10 @@ in {
require('cmp').mapping.abort()
'')
(mkSetLuaBinding mappings.scrollDocsUp ''
function()
require('cmp').mapping.scroll_docs(-4)
end
'')
(mkSetLuaBinding mappings.scrollDocsDown ''
function()
require('cmp').mapping.scroll_docs(4)
end
'')
];
@ -125,17 +121,13 @@ in {
require('cmp').complete
'')
(mkSetLuaBinding mappings.close ''
require('cmp').mapping.close
require('cmp').mapping.close()
'')
(mkSetLuaBinding mappings.scrollDocsUp ''
function()
require('cmp').mapping.scroll_docs(-4)
end
'')
(mkSetLuaBinding mappings.scrollDocsDown ''
function()
require('cmp').mapping.scroll_docs(4)
end
'')
];