tf.nvim - Enhanced Terraform Experience
reddit.com·2h·
Discuss: r/neovim
🏗️Terraform
Preview
Report Post

Hello,

I was always annoyed how my workflow for looking up the docs of a resource was:

  1. Jumping to the resource definition, e.g. resource "aws_instance" "foo"
  2. Yanking the type of the resource
  3. Opening my browser and searching for the resource
  4. Clicking on the (correct) search result

Finally, I wrote a plugin that does that for me. I just run :TerraformDoc and tf.nvim opens the documentation in the browser (configurable) for the current resource (block) my cursor is "in".

Another thing that was often cumbersome for me was viewing the current Terraform state and deleting resources from it. Now, I can just run :TerraformState, ...

Similar Posts

Loading similar posts...