Require nvim-0.10 with new feature
vim.system
nvim-cmp source for CodeGeeX.
-- lazy.nvim spec
{
"sunn4room/nvim-cmp-codegeex",
opts = {
apikey = "xxx", -- the api key of codegeex.
range = nil, -- the range to current line for completion context.
delay = nil, -- debounce timeout. 300 is a good choice.
},
}
For security reason, codegeex source is not available by default. You should enable codegeex source with vim.b.use_codegeex = true
.
Some infos about nvim-cmp:
- source name is
codegeex
- kind text is
CodeGeeX
- highlight group is
CmpItemKindCodeGeeX
if you don't want to save apikey in nvim config, you can save the apikey to
codegeex-apikey
in follow directories:
- the state directory in neovim
- the xdg config home
- the user home