summaryrefslogtreecommitdiff
path: root/rc/filetype/html.kak
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2019-03-12 22:24:33 -0700
committerJustin Frank <justinpfrank@protonmail.com>2019-04-08 17:02:44 -0700
commit1fab727f2be4be4e4b6e85887c283daf86aef722 (patch)
tree3cd52c6a5f4b9dc7e89284bdc01deb9899509029 /rc/filetype/html.kak
parent6092852640096c777f700cf669666504b10e2a58 (diff)
Modified a bunch of language support files to use modules
Diffstat (limited to 'rc/filetype/html.kak')
-rw-r--r--rc/filetype/html.kak13
1 files changed, 13 insertions, 0 deletions
diff --git a/rc/filetype/html.kak b/rc/filetype/html.kak
index 5f76721d..81db5c9b 100644
--- a/rc/filetype/html.kak
+++ b/rc/filetype/html.kak
@@ -12,6 +12,17 @@ hook global BufCreate .*\.xml %{
set-option buffer filetype xml
}
+hook -once global BufSetOption filetype=(html|xml) %{
+ require-module html
+}
+
+provide-module html %[
+
+try %{
+ require-module css
+ require-module javascript
+}
+
# Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾
@@ -73,3 +84,5 @@ hook global WinSetOption filetype=(html|xml) %{
remove-hooks window ""%val{hook_param_capture_1}-.+""
"
}
+
+]