From 92fe5c9ff7e5e9e3fe02f8cea477bacf7c9e77ae Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 22 Apr 2020 18:58:52 +0100 Subject: [PATCH] docs: Add usage instructions for IntelliJ --- docs/USAGE.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/USAGE.md b/docs/USAGE.md index 213bc5efe..cccad4bd3 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -54,3 +54,19 @@ Make sure to read through the [example vim configuration](https://github.com/neo " Use to trigger completion. inoremap coc#refresh() ``` + +## IntelliJ IDE + + - Install [LSP Support plugin](https://plugins.jetbrains.com/plugin/10209-lsp-support) + - Open Settings + - Go to `Languages & Frameworks → Language Server Protocol → Server Definitions` + - Pick `Executable` + - set `Extension` to `tf` + - set `Path` to `terraform-ls` + - set `Args` to `serve` + - Confirm by clicking `Apply` + +Please note that the since the [Terraform plugin](https://plugins.jetbrains.com/plugin/7808-hashicorp-terraform--hcl-language-support) +provides overlapping functionality (and more features at the time of writing). +As a result having both enabled at the same time may result in suboptimal UX, +such as duplicate completion candidates.