Skip to content
Discussion options

You must be logged in to vote

I try to add the nvim-cmp source cmp-dictionary but failed.
I follow the steps here

@OriLiMu Keep in mind that the CMP Dictionary is not compatible with blink.cmp as it is designed only for nvim.cmp.

If you're looking to use a dictionary source in blink.cmp, you can use blink-cmp-dictionary.

but seems not work for me.
And I want this source only work in markdown and text file. how to make it.

Before I add the code to the /ftplugin/markdown.lua(and text.lua) file. But I don't know how to make it now.
Before cmp added here in the /ftplugin/ folder not in the /lua/plugins/ at start.

local cmp = require("cmp")

-- 获取当前的源配置
local sources = vim.deepcopy(cmp.get_config().sources) -- 深拷贝现有源

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OriLiMu
Comment options

Answer selected by OriLiMu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants