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
commit
b63fa7dfa1
|
|
@ -88,6 +88,7 @@ fn writeSyntax(writer: anytype) !void {
|
||||||
\\let s:cpo_save = &cpo
|
\\let s:cpo_save = &cpo
|
||||||
\\set cpo&vim
|
\\set cpo&vim
|
||||||
\\
|
\\
|
||||||
|
\\syn iskeyword @,48-57,-
|
||||||
\\syn keyword ghosttyConfigKeyword
|
\\syn keyword ghosttyConfigKeyword
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue