mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-03 12:02:36 +00:00
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' ```
This commit is contained in:
@@ -88,6 +88,7 @@ fn writeSyntax(writer: anytype) !void {
|
||||
\\let s:cpo_save = &cpo
|
||||
\\set cpo&vim
|
||||
\\
|
||||
\\syn iskeyword @,48-57,-
|
||||
\\syn keyword ghosttyConfigKeyword
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user