add filetype detection

This commit is contained in:
Roel de Cort 2024-05-18 00:32:53 +02:00
parent 78f7597afe
commit b26f51b8c5
2 changed files with 15 additions and 0 deletions

14
config/file_types.nix Normal file
View file

@ -0,0 +1,14 @@
{
autoGroups = {
filetypes = {};
};
files."ftdetect/terraformft.lua".autoCmd = [
{
group = "filetypes";
event = ["BufRead" "BufNewFile"];
pattern = ["*.tf" " *.tfvars" " *.hcl"];
command = "set ft=terraform";
}
];
}