summaryrefslogtreecommitdiff
path: root/rc/filetype/yaml.kak
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2019-03-13 11:15:59 -0700
committerJustin Frank <justinpfrank@protonmail.com>2019-04-08 17:02:44 -0700
commitc3f694a28f2da1454119ff49540377f4370f940d (patch)
tree6a28a27479e9194949f67612e49945f0c9e07a58 /rc/filetype/yaml.kak
parent1fab727f2be4be4e4b6e85887c283daf86aef722 (diff)
Modified base files to use modules
Diffstat (limited to 'rc/filetype/yaml.kak')
-rw-r--r--rc/filetype/yaml.kak8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/filetype/yaml.kak b/rc/filetype/yaml.kak
index 7076e13d..8e0f3487 100644
--- a/rc/filetype/yaml.kak
+++ b/rc/filetype/yaml.kak
@@ -8,6 +8,12 @@ hook global BufCreate .*[.](ya?ml) %{
set-option buffer filetype yaml
}
+hook -once global BufSetOption filetype=yaml %{
+ require-module yaml
+}
+
+provide-module yaml %{
+
# Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾
@@ -56,3 +62,5 @@ hook global WinSetOption filetype=yaml %{
hook window InsertChar \n -group yaml-indent yaml-indent-on-new-line
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window yaml-.+ }
}
+
+}