nixvim/config/file_types.nix
Wael Nasreddine 0f42b0eebb
treewide: format all files (#57)
Run `nix fmt` at the root of the repository to format all files. I've
done this on my fork and this will help me merge your changes later
without having to deal with un-formatted files.
2024-11-26 09:47:49 +01:00

36 lines
570 B
Nix

{
autoGroups = {
filetypes = { };
};
files."ftdetect/terraformft.lua".autoCmd = [
{
group = "filetypes";
event = [
"BufRead"
"BufNewFile"
];
pattern = [
"*.tf"
" *.tfvars"
" *.hcl"
];
command = "set ft=terraform";
}
];
files."ftdetect/bicepft.lua".autoCmd = [
{
group = "filetypes";
event = [
"BufRead"
"BufNewFile"
];
pattern = [
"*.bicep"
"*.bicepparam"
];
command = "set ft=bicep";
}
];
}