From e39d469da9fc6ba845c0956c446572561a0da2d4 Mon Sep 17 00:00:00 2001 From: diniamo Date: Tue, 12 Nov 2024 22:35:03 +0100 Subject: [PATCH] nvim-cmp: allow passing null to format Not adding special cases to where it's used shouldn't break anything. --- modules/plugins/completion/nvim-cmp/nvim-cmp.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugins/completion/nvim-cmp/nvim-cmp.nix b/modules/plugins/completion/nvim-cmp/nvim-cmp.nix index d63ed73..06282b6 100644 --- a/modules/plugins/completion/nvim-cmp/nvim-cmp.nix +++ b/modules/plugins/completion/nvim-cmp/nvim-cmp.nix @@ -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]