vim: fix syntax highlight on scratch buffer (#7119)

Sometimes we need detect ghostty filetype on scratch buffer.
In this case `set iskeyword` in ftplugin is not loaded.

Screenshot:
https://github.com/ibhagwan/fzf-lua/pull/1913#issuecomment-2813289819.

e.g.
```sh
nvim +'0r ~/.config/ghostty/config' +'se syntax=ghostty'
```
pull/7125/head
Mitchell Hashimoto 2025-04-18 07:17:30 -07:00 committed by GitHub
commit b63fa7dfa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ fn writeSyntax(writer: anytype) !void {
\\let s:cpo_save = &cpo
\\set cpo&vim
\\
\\syn iskeyword @,48-57,-
\\syn keyword ghosttyConfigKeyword
);