1 2 3 4 5 6 7
local root = vim.pesc(vim.fn.getcwd()) vim.filetype.add({ pattern = { [root .. "/.*%.ya?ml"] = "yaml.ansible", }, })