The only path provider installed is cmp-async-path, which registers as `async_path`. Our sources list overrode NvChad's index-by-index, so slot 5 became `path` — a name no source claims — and path completion silently did nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
23 lines
432 B
Lua
23 lines
432 B
Lua
local lspkind = require "lspkind"
|
|
|
|
local nvchad_options = require "nvchad.configs.cmp"
|
|
|
|
local options = {
|
|
sources = {
|
|
{ name = "nvim_lsp" },
|
|
{ name = "luasnip" },
|
|
{ name = "buffer" },
|
|
{ name = "nvim_lua" },
|
|
{ name = "async_path" },
|
|
},
|
|
|
|
formatting = {
|
|
format = lspkind.cmp_format {
|
|
mode = "symbol",
|
|
max_width = 50,
|
|
},
|
|
},
|
|
}
|
|
|
|
return vim.tbl_deep_extend("force", nvchad_options, options)
|