Files
nvim-config/lua/configs/cmp.lua
T
naps62andClaude Opus 5 b58c9b182d fix(cmp): correct dead path source name
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>
2026-08-17 12:49:02 +00:00

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)