cmp: deduplicate attr key

This commit is contained in:
Ching Pei Yang 2024-11-03 18:02:50 +01:00
parent 834aee6cce
commit 347a04b62e
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -74,10 +74,9 @@ in {
};
formatting.format = cfg.format;
};
# `cmp` and `luasnip` are defined above, in the `nvim-cmp` section
setupOpts.mapping = {
mapping = {
${mappings.complete} = mkLuaInline "cmp.mapping.complete()";
${mappings.close} = mkLuaInline "cmp.mapping.abort()";
${mappings.scrollDocsUp} = mkLuaInline "cmp.mapping.scroll_docs(-4)";
@ -122,4 +121,5 @@ in {
};
};
};
};
}