diff options
| author | Justin Frank <justinpfrank@protonmail.com> | 2019-03-12 22:24:33 -0700 |
|---|---|---|
| committer | Justin Frank <justinpfrank@protonmail.com> | 2019-04-08 17:02:44 -0700 |
| commit | 1fab727f2be4be4e4b6e85887c283daf86aef722 (patch) | |
| tree | 3cd52c6a5f4b9dc7e89284bdc01deb9899509029 /rc/filetype/protobuf.kak | |
| parent | 6092852640096c777f700cf669666504b10e2a58 (diff) | |
Modified a bunch of language support files to use modules
Diffstat (limited to 'rc/filetype/protobuf.kak')
| -rw-r--r-- | rc/filetype/protobuf.kak | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/filetype/protobuf.kak b/rc/filetype/protobuf.kak index 2ef10480..4924cb05 100644 --- a/rc/filetype/protobuf.kak +++ b/rc/filetype/protobuf.kak @@ -7,6 +7,12 @@ hook global BufCreate .*\.proto$ %{ set-option buffer filetype protobuf } +hook -once global BufSetOption filetype=protobuf %{ + require-module protobuf +} + +provide-module protobuf %[ + # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾ @@ -83,3 +89,5 @@ hook global WinSetOption filetype=protobuf %[ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window protobuf-.+ } ] + +] |
