From 28a2759b3ea63df344a71d63b1500bb4f0ad1274 Mon Sep 17 00:00:00 2001 From: Brayan Bautista Date: Thu, 6 Aug 2020 17:00:39 -0500 Subject: [PATCH] coc-nvim documentation --- docs/editors/vim.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/editors/vim.md b/docs/editors/vim.md index 3fff1d9..a4bccf9 100644 --- a/docs/editors/vim.md +++ b/docs/editors/vim.md @@ -3,3 +3,24 @@ Todo: add config snippets - Should work with all LSP plugin on vim + +### coc.nvim + +- Install the [coc.nvim plugin](https://github.com/neoclide/coc.nvim) +- Add the following snippet to the `coc-setting.json` file (editable via `:CocConfig` in NeoVim) + +```json +{ + "languageserver": { + "terraform": { + "command": "terraform-lsp", + "filetypes": [ + "terraform", + "tf" + ], + "initializationOptions": {}, + "settings": {} + } + } +} +```