Replies: 2 comments
-
Hey there, providers will be chosen before the menu shows up via sources = {
completion = {
enabled_providers = function()
local node = vim.treesitter.get_node()
if vim.bo.filetype == 'toml' then
return { 'crates' }
elseif node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }), node:type())
return { 'buffer' }
else
return { 'lsp', 'buffer', etc.. }
end
end
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your quick reply, it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does blink.cmp support buffer local sources? kind of like
cmp.setup.filetype()
which set sources for specified type.Beta Was this translation helpful? Give feedback.
All reactions