aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-11-12 07:38:55 +0800
committerGitHub <noreply@github.com>2025-11-12 07:38:55 +0800
commit97cb0d55717f0b9ffe0748d4cd220217abc51a63 (patch)
tree4fe1b7b491b7024a5e1a53133b38ad51e3a82c55 /runtime/lua/vim
parent2822c38f2e737e9b249d2dc7b09eedd03dcc077c (diff)
downloadrneovim-97cb0d55717f0b9ffe0748d4cd220217abc51a63.tar.gz
rneovim-97cb0d55717f0b9ffe0748d4cd220217abc51a63.tar.bz2
rneovim-97cb0d55717f0b9ffe0748d4cd220217abc51a63.zip
vim-patch:9.1.1906: filetype: not all Ruby files are recognized (#36526)
Problem: filetype: not all Ruby files are recognized Solution: Detect *.rbi and Brewfile as ruby filetype (botantony). - `rbi` is a file extension used by Sorbet, typechecker for Ruby: https://sorbet.org/docs/rbi - `Brewfile` is a bundler file for Homebrew package manager: https://docs.brew.sh/Brew-Bundle-and-Brewfile closes: vim/vim#18697 https://github.com/vim/vim/commit/efc3be77bbf707edad9cbbda7aef471de65411fd Co-authored-by: botantony <antonsm21@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 419e44d46f..b83ae1c248 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1099,6 +1099,7 @@ local extension = {
rjs = 'ruby',
rxml = 'ruby',
rb = 'ruby',
+ rbi = 'ruby',
rant = 'ruby',
ru = 'ruby',
rbw = 'ruby',
@@ -1844,6 +1845,7 @@ local filename = {
['requirements.in'] = 'requirements',
['resolv.conf'] = 'resolv',
['robots.txt'] = 'robots',
+ Brewfile = 'ruby',
Gemfile = 'ruby',
Puppetfile = 'ruby',
['.irbrc'] = 'ruby',