1
Fork 0
satellite/dotfiles/neovim/lua/my/options/files.lua

16 lines
350 B
Lua
Raw Normal View History

local au = require("my.helpers.augroup")
local M = {}
2022-07-19 13:03:03 +02:00
local syntaxFiles = {hkf = "hkf"}
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