diff --git a/.config/nvim/plugin/cmp.lua b/.config/nvim/plugin/cmp.lua index e50e7780..efb0ccb0 100644 --- a/.config/nvim/plugin/cmp.lua +++ b/.config/nvim/plugin/cmp.lua @@ -29,18 +29,13 @@ cmp.setup { expand = function(args) luasnip.lsp_expand(args.body) end, }, mapping = cmp.mapping.preset.insert(), - -- TODO: how can I make some take precedence of others? - sources = { - { name = "luasnip" }, - { name = "nvim_lsp" }, - { name = "path" }, - { name = "buffer" }, - { - name = "spell", - keyword_length = 10, -- PERF: - option = { - keep_all_entries = true, - }, + sources = cmp.config.sources({ + { name = "luasnip" }, + { name = "nvim_lsp" }, + { name = "path" }, }, - }, + { + { name = "buffer" }, + { name = "spell", }, + }), }