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

Configuring programming language to search snippets for #27

Open
saatvikshah opened this issue Feb 26, 2021 · 1 comment
Open

Configuring programming language to search snippets for #27

saatvikshah opened this issue Feb 26, 2021 · 1 comment

Comments

@saatvikshah
Copy link

Thanks for providing this plugin!

Currently, I get java suggestions by default even when using CLion. I can do "Alt-P" and append "cpp" to my query to get the correct language but would be nice to have a way to fix this in the plugin settings. Additionally, a sane default can be set according to IDE used(eg. cpp for CLion, java for Intellij, etc).

@szymonprz
Copy link
Owner

szymonprz commented Feb 27, 2021

Additionally, a sane default can be set according to IDE used(eg. cpp for CLion, java for Intellij, etc).

This is a very good idea, currently language for query is selected from file extension of file in editor, but if you're using a dialog to ask a question then this editor is not assigned to any file and that's why it cannot resolve language correctly.
I will try to fix the default language selection based on IDE used because it should be easier to implement :)

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

2 participants