Support documentation window scrolling

This commit is contained in:
hrsh7th
2021-08-09 19:34:45 +09:00
parent 421720641b
commit a11ddccb33
6 changed files with 62 additions and 2 deletions

View File

@@ -29,6 +29,10 @@ return function()
winhighlight = 'NormalFloat:CmpDocumentation,FloatBorder:CmpDocumentationBorder',
maxwidth = math.floor((WIDE_HEIGHT * 2) * (vim.o.columns / (WIDE_HEIGHT * 2 * 16 / 9))),
maxheight = math.floor(WIDE_HEIGHT * (WIDE_HEIGHT / vim.o.lines)),
mapping = {
['<C-d>'] = types.cmp.ScrollDirection.Up,
['<C-f>'] = types.cmp.ScrollDirection.Down,
}
},
confirmation = {