17 lines
351 B
Lua
17 lines
351 B
Lua
local au = require("my.helpers.augroup")
|
|
local M = {}
|
|
|
|
local syntaxFiles = {bkf = "bkf"}
|
|
|
|
function M.setup()
|
|
au.augroup("myfiledetection", function()
|
|
for extension, syntax in pairs(syntaxFiles) do
|
|
au.autocmd("BufnewFile,BufRead", "*." .. extension,
|
|
"setf " .. syntax)
|
|
end
|
|
end)
|
|
|
|
end
|
|
|
|
return M
|