on master help sign in
Treat 'Vagrantfile' files as Ruby code (#7112)

`Vagrantfile`s are configuration files for the [vagrant](https://www.vagrantup.com/) tool, and they are written in Ruby. Even as vagrant [is ported to Go](https://www.hashicorp.com/blog/toward-vagrant-3-0), `Vagrantfile`s [will be written in Ruby](https://developer.hashicorp.com/vagrant/docs/experimental/vagrant_go) When a Vangrantfile is created, it starts with these lines: ``` ``` But since Helix (quite reasonably) doesn't change editor behavior based on file contents, adding this to `languages.toml` seems like a reasonable way to get this functionality.

commit16375cd94ad94eb07efa5d74d4f8d03f2b205811 authorBrandon Sprague <brandon00sprague@gmail.com> dateFri 26 May 2023, 01:43 (3 years ago) parent0c21c22
1 file changed+1−1
languages.toml+1−1
languages.toml+1−1
@@ -677,7 +677,7 @@ source = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "1b69
677677name = "ruby"
678678scope = "source.ruby"
679679injection-regex = "ruby"
680−file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile", "rabl", "jbuilder", "jb", "Podfile", "podspec"]
680+file-types = ["rb", "rake", "rakefile", "irb", "gemfile", "gemspec", "Rakefile", "Gemfile", "rabl", "jbuilder", "jb", "Podfile", "podspec", "Vagrantfile"]
681681shebangs = ["ruby"]
682682roots = []
683683comment-token = "#"