investigate.vim
investigate.vim copied to clipboard
Set Project syntax with an environment variable
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.