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

Set Project syntax with an environment variable #29

Open
akhan4u opened this issue Sep 14, 2020 · 0 comments
Open

Set Project syntax with an environment variable #29

akhan4u opened this issue Sep 14, 2020 · 0 comments

Comments

@akhan4u
Copy link

akhan4u commented Sep 14, 2020

Hi,

I was wondering if you add the functionality to set the project related syntax with environment variable.

[syntax]
ruby=rails
export VIM_INVESTIGATE_SYNTAX_KEY=ruby
export VIM_INVESTIGATE_SYNTAX_VALUE=rails

This helps immensely in projects that are managed with .direnv. Or else we need to place a .invrc file in every folder beneath the root directory of the project. If vim is running inside those directories, it does not pick up .invrc settings.

Investigate provides tons of configurations to allow all language defaults to
be overridden on a global and per-project basis. This can be done by setting
global vim variables or using a '.investigaterc' file in the root of the
directory vim is running from.

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

1 participant