# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2026 Apr 15
+# Last Change: 2026 Apr 20
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
# These functions are moved here from runtime/filetype.vim to make startup
"bp": "bp",
# Tiltfile
"Tiltfile": "tiltfile",
- "tiltfile": "tiltfile"
+ "tiltfile": "tiltfile",
+ # Ghostty
+ "ghostty": "ghostty",
}
# Key: file name (the final path component, excluding the drive and root)
# Value: filetype
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2026 Apr 08
+" Last Change: 2026 Apr 20
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" If the filetype can be detected from extension or file name(the final path component),
\| setf text
\| endif
+" Ghostty configuration
+au BufNewFile,BufRead */ghostty/config setf ghostty
+au BufNewFile,BufRead */ghostty/themes/* call s:StarSetf('ghostty')
+au BufNewFile,BufRead */com.mitchellh.ghostty/config setf ghostty
" Generic log file
--- /dev/null
+" Vim filetype plugin file
+" Language: ghostty
+
+" Quit if a ftplugin file was already loaded
+if exists("b:did_ftplugin")
+ finish
+endif
+
+" Use the cfg plugin, it's similar enough.
+runtime! ftplugin/cfg.vim
gedcom: ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'],
gel: ['file.gel'],
gemtext: ['file.gmi', 'file.gemini'],
+ ghostty: ['ghostty/config', 'ghostty/keymaps.ghostty', '/.config/ghostty/config', '/.config/ghostty/keymaps.ghostty',
+ '~/Library/Application Support/com.mitchellh.ghostty/config.ghostty', '~/Library/Application Support/com.mitchellh.ghostty/config',
+ '~/.config/ghostty/themes/Custom Theme', '/usr/share/ghostty/themes/Builtin Theme'],
gift: ['file.gift'],
gitattributes: ['file.git/info/attributes', '.gitattributes', '/.config/git/attributes', '/etc/gitattributes', '/usr/local/etc/gitattributes', 'some.git/info/attributes'] + WhenConfigHome('$XDG_CONFIG_HOME/git/attributes'),
gitcommit: ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG', 'NOTES_EDITMSG', 'EDIT_DESCRIPTION'],
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 371,
/**/
370,
/**/