diff --git a/modules/completion/nvim-cmp/config.nix b/modules/completion/nvim-cmp/config.nix index f9cb24c..e49fdb9 100644 --- a/modules/completion/nvim-cmp/config.nix +++ b/modules/completion/nvim-cmp/config.nix @@ -109,14 +109,10 @@ in { 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) '') ];