Merge pull request #96 from horriblename/fix-cmp-abort

fix cmp abort and scrollDocs keymap
This commit is contained in:
NotAShelf 2023-07-20 19:21:58 +03:00 committed by GitHub
commit a8c5564bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 15 deletions

View file

@ -8,4 +8,6 @@
https://github.com/horriblename[horriblename]:
* Add transparency support for tokyonight theme
* Add transparency support for tokyonight theme.
* Fix bug where cmp's close and scrollDocs mappings wasn't working.

View file

@ -106,17 +106,13 @@ in {
end
'')
(mkSetLuaBinding mappings.close ''
require('cmp').mapping.abort
require('cmp').mapping.abort()
'')
(mkSetLuaBinding mappings.scrollDocsUp ''
function()
require('cmp').mapping.scroll_docs(-4)
end
require('cmp').mapping.scroll_docs(-4)
'')
(mkSetLuaBinding mappings.scrollDocsDown ''
function()
require('cmp').mapping.scroll_docs(4)
end
require('cmp').mapping.scroll_docs(4)
'')
];
@ -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
require('cmp').mapping.scroll_docs(-4)
'')
(mkSetLuaBinding mappings.scrollDocsDown ''
function()
require('cmp').mapping.scroll_docs(4)
end
require('cmp').mapping.scroll_docs(4)
'')
];