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

View file

@ -4,6 +4,7 @@ _: {
./settings.nix
./keymaps.nix
./auto_cmds.nix
./file_types.nix
# Themes
./plugins/themes/default.nix

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";
}
];
}