nvim-cmp: allow passing null to format

Not adding special cases to where it's used shouldn't break anything.
This commit is contained in:
diniamo 2024-11-12 22:35:03 +01:00 committed by raf
parent 947cf90878
commit e39d469da9

View file

@ -72,7 +72,7 @@ in {
};
format = mkOption {
type = luaInline;
type = nullOr luaInline;
default = mkLuaInline ''
function(entry, vim_item)
vim_item.menu = (${toLuaObject cfg.sources})[entry.source.name]