diff --git a/config/plugins/cmp/cmp.nix b/config/plugins/cmp/cmp.nix index 1592ed4..6811171 100644 --- a/config/plugins/cmp/cmp.nix +++ b/config/plugins/cmp/cmp.nix @@ -20,27 +20,18 @@ ''; # cmp mappings declaration mapping = { - "" = - # Lua - "cmp.mapping.scroll_docs(-4)"; - "" = - # Lua - "cmp.mapping.scroll_docs(4)"; - "" = - # Lua - "cmp.mapping.complete()"; - "" = + "" = # Lua "cmp.mapping.close()"; - "" = + "" = # Lua "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})"; - "" = + "" = # Lua "cmp.mapping(cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})"; - "" = + "" = # Lua - "cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace })"; + "cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Replace })"; }; }; # Scans the sources array and enable the corresponding plugins if they are known to nixvim.