1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 13:59:48 +01:00

Merge pull request 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
docs/release-notes
modules/completion/nvim-cmp

View file

@ -8,4 +8,6 @@
https://github.com/horriblename[horriblename]: 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 end
'') '')
(mkSetLuaBinding mappings.close '' (mkSetLuaBinding mappings.close ''
require('cmp').mapping.abort require('cmp').mapping.abort()
'') '')
(mkSetLuaBinding mappings.scrollDocsUp '' (mkSetLuaBinding mappings.scrollDocsUp ''
function() require('cmp').mapping.scroll_docs(-4)
require('cmp').mapping.scroll_docs(-4)
end
'') '')
(mkSetLuaBinding mappings.scrollDocsDown '' (mkSetLuaBinding mappings.scrollDocsDown ''
function() require('cmp').mapping.scroll_docs(4)
require('cmp').mapping.scroll_docs(4)
end
'') '')
]; ];
@ -125,17 +121,13 @@ in {
require('cmp').complete require('cmp').complete
'') '')
(mkSetLuaBinding mappings.close '' (mkSetLuaBinding mappings.close ''
require('cmp').mapping.close require('cmp').mapping.close()
'') '')
(mkSetLuaBinding mappings.scrollDocsUp '' (mkSetLuaBinding mappings.scrollDocsUp ''
function() require('cmp').mapping.scroll_docs(-4)
require('cmp').mapping.scroll_docs(-4)
end
'') '')
(mkSetLuaBinding mappings.scrollDocsDown '' (mkSetLuaBinding mappings.scrollDocsDown ''
function() require('cmp').mapping.scroll_docs(4)
require('cmp').mapping.scroll_docs(4)
end
'') '')
]; ];