Add cmp.config.disable for opt-out default setting

This commit is contained in:
hrsh7th
2021-10-25 22:50:38 +09:00
parent 5f5e8442f1
commit f1da3adddc
4 changed files with 19 additions and 0 deletions

View File

@@ -29,6 +29,9 @@ misc.concat = function(list1, list2)
return new_list
end
---The symbol to remove key in misc.merge.
misc.none = vim.NIL
---Merge two tables recursively
---@generic T
---@param v1 T
@@ -49,6 +52,9 @@ misc.merge = function(v1, v2)
end
return new_tbl
end
if v1 == misc.none then
return nil
end
if v1 == nil then
return v2
end