From f9be2d3a85e8a1813edde4d68257e09d0196ba3b Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 11 Feb 2024 22:46:18 +0530 Subject: [PATCH] setup key bindings for cmp --- after/plugin/cmp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua index 062839c..bc058c0 100644 --- a/after/plugin/cmp.lua +++ b/after/plugin/cmp.lua @@ -2,6 +2,13 @@ require("cmp_git").setup() local cmp = require("cmp") cmp.setup({ + mapping = { + [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.select_next_item(), + [""] = cmp.mapping.complete(), + [""] = cmp.mapping.close(), + [""] = cmp.mapping.confirm({ select = true }), + }, snippet = { expand = function(args) require("luasnip").lsp_expand(args.body)