From 52f7999705adb9ebc30c4774a7f84b4642edd638 Mon Sep 17 00:00:00 2001 From: Hugo Musso Gualandi Date: Mon, 26 Jul 2021 17:41:00 -0300 Subject: [PATCH] Recognize ".rockspec" file extension as a Lua file rockspec files are used by [Luarocks](https://luarocks.org/), the most prominent package manager for Lua. Despite the different file extension, these files are actually Lua files and should be syntax highlighted as such. For what it is worth, Neovim also does the same thing that I am doing in this commit. They recognize both ".lua" and ".rockspec" as being Lua files (and no other extensions, as far as I know). --- rc/filetype/lua.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/lua.kak b/rc/filetype/lua.kak index 05684c14..0325c6e7 100644 --- a/rc/filetype/lua.kak +++ b/rc/filetype/lua.kak @@ -4,7 +4,7 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*[.](lua) %{ +hook global BufCreate .*[.](lua|rockspec) %{ set-option buffer filetype lua }