So terraform-lsp
currently has a limited textDocument/hover
support. Simply put,
I can't pull up useful documentation from vim.
The plugin is the lua port of the vim-script in this hashicorp/terraform-ls#1965 by @iypetrov.
Install with packer or similar.
Call setup
after installation.
{ "timonviola/terraform-doc-browser.nvim" }
or
{
'timonviola/terraform-doc-browser.nvim',
config = function()
require("terraform-doc-browser").setup()
end
}
add({ source = "timonviola/terraform-doc-browser.nvim" })
use { "timonviola/terraform-doc-browser.nvim" }
In a .tf
file, use <leader>dc
to open the relevant docs in the system default browser.