2020-10-30 16:29:32 +01:00
|
|
|
hook global WinCreate .*\.svelte %[
|
|
|
|
set-option window filetype svelte
|
|
|
|
]
|
|
|
|
|
|
|
|
hook global WinSetOption filetype=(svelte) %{
|
|
|
|
require-module html
|
|
|
|
|
2020-11-09 09:53:10 +01:00
|
|
|
hook window ModeChange pop:insert:.* -group "svelte-trim-indent" html-trim-indent
|
|
|
|
hook window InsertChar '>' -group "svelte-indent" html-indent-on-greater-than
|
|
|
|
hook window InsertChar \n -group "svelte-indent" html-indent-on-new-line
|
2020-10-30 16:29:32 +01:00
|
|
|
|
|
|
|
hook -once -always window WinSetOption "filetype=.*" "
|
2020-11-09 09:53:10 +01:00
|
|
|
remove-hooks window ""svelte-.+""
|
2020-10-30 16:29:32 +01:00
|
|
|
"
|
|
|
|
}
|
|
|
|
|
|
|
|
hook -group svelte-highlight global WinSetOption filetype=(svelte) %{
|
2020-11-09 09:53:10 +01:00
|
|
|
add-highlighter "window/svelte" ref html
|
2020-10-30 16:29:32 +01:00
|
|
|
hook -once -always window WinSetOption "filetype=.*" "
|
2020-11-09 09:53:10 +01:00
|
|
|
remove-highlighter ""window/svelte""
|
2020-10-30 16:29:32 +01:00
|
|
|
"
|
|
|
|
}
|