dotfiles/home/.config/lvim/ftdetect/apparmor.lua
2022-11-20 03:14:18 +01:00

12 lines
301 B
Lua

local autocmd = vim.api.nvim_create_autocmd
autocmd({ "BufNewFile", "BufRead" }, {
pattern = { "/etc/apparmor.d/*" },
command = "setfiletype apparmor"
})
autocmd({ "BufNewFile", "BufRead" }, {
pattern = { "/usr/share/apparmor/extra-profiles/*" },
command = "setfiletype apparmor"
})