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
parent 3142a1bf68
commit 668efb05bf

View file

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