-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable source for certain filetypes #666
Comments
You can just call -- ftplugin/haskell.lua
cmp.setup.buffer({
sources = { ... }
}) The problem is that -- ftplugin/haskell.lua
local cmp = require('cmp')
local sources = cmp.get_config().sources
for i = #sources, 1, -1 do
if sources[i].name == 'emoji' then
table.remove(sources, i)
end
end
cmp.setup.buffer({ sources = sources }) #632 would make this easier. |
Thanks, @dmitmel. I'll give it a try. |
Sorry if this has been answered elsewhere, but I couldn't find a way to disable a source for a particular file type. What's the API, in general, to dynamically configure sources? My use case is that I want to disable the
emoji
source inHaskell
andPureScript
since:
is commonly used.The text was updated successfully, but these errors were encountered: