add filetype detection
This commit is contained in:
parent
78f7597afe
commit
b26f51b8c5
2 changed files with 15 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ _: {
|
||||||
./settings.nix
|
./settings.nix
|
||||||
./keymaps.nix
|
./keymaps.nix
|
||||||
./auto_cmds.nix
|
./auto_cmds.nix
|
||||||
|
./file_types.nix
|
||||||
|
|
||||||
# Themes
|
# Themes
|
||||||
./plugins/themes/default.nix
|
./plugins/themes/default.nix
|
||||||
|
|
|
||||||
14
config/file_types.nix
Normal file
14
config/file_types.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue