Vim Support

January 20, 2022 ยท View on GitHub

CoC

terraform-lsp can be used with CoC.

Requirements

Install the terraform-lsp binary and verify it's available in your $PATH.

Installation

Go to your coc-settings.json file (you can use the following command in Vim: :CocConfig).

Add an entry for the terraform language server.

{
  "languageserver": {
    "terraform": {
      "command": "terraform-lsp",
      "filetypes": ["terraform"]
    }
  }
}