Skip to content

Commit

Permalink
home (terminal): More OpenTofu tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Feb 13, 2025
1 parent b5bd50b commit 222dd23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions home/terminal/bat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ in {
config = lib.mkIf cfg.enable {
programs.bat = {
enable = true;
config = {
map-syntax = [
"*.tofu:Terraform"
];
};
};
};
}
4 changes: 2 additions & 2 deletions home/terminal/nvim/opentofu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ _: {
plugins = {
lsp.servers.terraformls = {
enable = true;
filetypes = ["terraform" "tfvars" "tofu"];
filetypes = ["tf" "terraform" "terraform-vars" "tfvars" "tofu"];
};
treesitter = {
enable = true;
languageRegister = {
hcl = ["terraform" "tofu"];
hcl = ["tf" "terraform" "tofu"];
};
};
none-ls.sources.formatting.opentofu_fmt = {
Expand Down

0 comments on commit 222dd23

Please sign in to comment.