Skip to content
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

Trigger character or manual trigger? #3

Open
chuan2984 opened this issue Mar 24, 2024 · 3 comments
Open

Trigger character or manual trigger? #3

chuan2984 opened this issue Mar 24, 2024 · 3 comments

Comments

@chuan2984
Copy link

Hey there, i have been searching for a completion source like this.
I work in a codebase that contains 100+ envs, and almost any letter would be a hit. Is there a way to set this so that it only triggers on all snake case captialized chracters? Or is there a way to set a manual trigger?
Thanks!

@SergioRibera
Copy link
Owner

You're right, I did it this way so I could get the completion every time, I think customizing it might be a good idea

@chuan2984
Copy link
Author

Any pointer in customizing it, pretty please? im relatively new. Google around for a bit couldnt find much

@philosofonusus
Copy link

philosofonusus commented Jan 13, 2025

Hi @chuan2984 if you are still interested, I have made a plugin which provides all-in-one toolkit to work with .env files and environment variables. You can check it out here: https://github.com/philosofonusus/ecolog.nvim

It allows you to add custom trigger patterns for different file-types to avoid such issue. It has both nvim-cmp and blink-cmp support, and it implements this specific feature here:
https://github.com/philosofonusus/ecolog.nvim?tab=readme-ov-file#-custom-providers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants