diff options
| author | Jon Parise <jon@indelible.org> | 2025-09-25 16:39:11 -0400 |
|---|---|---|
| committer | Jon Parise <jon@indelible.org> | 2025-09-25 16:39:11 -0400 |
| commit | 79a5902ef23a30782df7bb1a2fac6dc20375697b (patch) | |
| tree | af520eeb7e904ccffa093ca3eb79e3798e8d62fb /src/extra/vim.zig | |
| parent | 230014a536af1803f21d1ba514f4a85aba8cc279 (diff) | |
vim: use :setf to set the filetype
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
Diffstat (limited to 'src/extra/vim.zig')
| -rw-r--r-- | src/extra/vim.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extra/vim.zig b/src/extra/vim.zig index e5261cd74..4443fd168 100644 --- a/src/extra/vim.zig +++ b/src/extra/vim.zig @@ -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 = |
