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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help