patch 9.2.0371: filetype: ghostty config files are not recognized

Problem:  filetype: ghostty config files are not recognized
Solution: Detect ghostty configuration files as ghostty filetype,
          include a simple ghostty filetype plugin (Bez Hermoso)

closes: #20002

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Bez Hermoso <me@bez.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Bez Hermoso
2026-04-20 14:47:58 +00:00
committed by Christian Brabandt
parent 2c436be6f7
commit b30803b231
5 changed files with 24 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
" 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