cloak.nvim icon indicating copy to clipboard operation
cloak.nvim copied to clipboard

[Feature: Add the option to enable cmp]

Open sergiornelas opened this issue 1 year ago • 4 comments

Hello, amazing plugin btw. Sometimes I want to use the cmp for snippets, or all kind of completions, doesn't matter if the hidden text shows in the cmp. Would be amazing if you add an option to enable cmp:

require("cloak").setup({
        disable_cmp = false.  -- default true	
        -- ...
})

Thanks.

sergiornelas avatar May 26 '24 07:05 sergiornelas

Could you just uncloak the file while you are working on it?

I see a possible use case being you are working on a file with cloaked stuff, but most parts of the file are not cloaked but wont have auto completion due to the whole file having cmp disabled.

whoop-t avatar Dec 16 '24 06:12 whoop-t

I have implemented this feature in my plugin - ecolog.nvim. Which provides all-in-one toolkit to work with environment variables and .env files

You can take a look at the docs section about this feature here

And a comparison to cloak.nvim here

ph1losof avatar Feb 19 '25 21:02 ph1losof

So to clarify you want to enable cmp, but have the cmp results sourced from the buffer be cloaked? I would accept a good and small patch adding that, if even possible.

laytan avatar Mar 05 '25 18:03 laytan

Yes, further more I think it will be appropriate to add blink.cmp support, didn't want to make an issue out of this small request. My plugin already handles it, I may create a PR to match it

ph1losof avatar Mar 05 '25 20:03 ph1losof