diff options
| author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-10-09 10:28:53 +0200 | 
|---|---|---|
| committer | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-10-09 10:28:53 +0200 | 
| commit | 92b2689e6f11004e65376e84912e61b9e6c58827 (patch) | |
| tree | d7b5a2d471f22d7e725c21c5e13bb36a8bf33d2c /lua | |
| parent | a13d5c90769ce6177d1e27b46efd967ed52c1d68 (diff) | |
docs: simplify cmp-emoji example
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/example.lua | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 78a3370..f84ebdc 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -44,8 +44,7 @@ return {      dependencies = { "hrsh7th/cmp-emoji" },      ---@param opts cmp.ConfigSchema      opts = function(_, opts) -      local cmp = require("cmp") -      opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } })) +      table.insert(opts.sources, { name = "emoji" })      end,    },  | 
