investigate.vim icon indicating copy to clipboard operation
investigate.vim copied to clipboard

Set Project syntax with an environment variable

Open akhan4u opened this issue 3 years ago • 0 comments

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.

akhan4u avatar Sep 14 '20 21:09 akhan4u