# x_cmp_cn **Repository Path**: xueyayang/x_cmp_cn ## Basic Information - **Project Name**: x_cmp_cn - **Description**: nvim中文补全插件。对Buffer内容进行分词(基于 cppjiebar),生成候选项,提供给补全插件 blink.cmp。解决nvim中文补全时,补全项很长(以符号分隔的单元),基本没法用。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-26 - **Last Updated**: 2025-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # x_cmp_cn #### 介绍 nvim中文补全插件。对Buffer内容进行分词(基于 [cppjiebar](https://gitee.com/xueyayang/cppjieba)),生成候选项,提供给补全插件 blink.cmp。解决nvim中文补全时,补全项很长(以符号分隔的单元),基本没法用的问题。 - 问题 ![补全问题1](lua/x_cmp_cn/test/problem_case1.png) ![补全问题2](lua/x_cmp_cn/test/problem_case2.png) - 效果 ![输入图片说明](lua/x_cmp_cn/test/right_case1.png) ![输入图片说明](lua/x_cmp_cn/test/right_case2.gif) - 测试 cppjiebar 分词 效果 ![输入图片说明](lua/x_cmp_cn/test/debug_case.gif) #### 安装教程 Vundle ``` Plugin 'saghen/blink.cmp' Plugin 'https://gitee.com/xueyayang/x_cmp_cn' ``` init.vim ``` require('blink.cmp').setup { sources = { default = { 'path', 'snippets', 'buffer', 'x_cmp_cn'}, providers = { x_cmp_cn = { name = 'x_cmp_cn', module = 'x_cmp_cn', } }, }, keymap = { preset = 'super-tab' }, completion = { documentation = { auto_show = true }}, fuzzy = { implementation = "prefer_rust_with_warning" }, } ```