vim: use :setf to set the filetype (#8914)

This is nicer because it only sets the filetype if it hasn't already
been set. :setf[iletype] has been available since vim version 6.

See: https://vimhelp.org/options.txt.html#%3Asetf
1.2.x
Mitchell Hashimoto 2025-09-26 06:57:28 -07:00
parent f764c070bd
commit 8b047fb570
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ pub const ftdetect =
\\"
\\" THIS FILE IS AUTO-GENERATED
\\
\\au BufRead,BufNewFile */ghostty/config,*/ghostty/themes/* set ft=ghostty
\\au BufRead,BufNewFile */ghostty/config,*/ghostty/themes/* setf ghostty
\\
;
pub const ftplugin =