From 8ab58906563f97d7f8379ef5d516176049767045 Mon Sep 17 00:00:00 2001 From: Julio Tain Sueiras Date: Thu, 3 Oct 2019 21:04:15 -0400 Subject: [PATCH] Updated README for sublime text --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 9ed6cfa..c932608 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ This is LSP(Language Server Protocol) for Terraform - [Issues](#issues-1) + [Intellij](#intellij) + [Vim](#vim) + + [Sublime Text 3](#sublime-text-3) + [Emacs](#emacs) + [Others](#others) * [Bugs](#bugs) @@ -122,6 +123,34 @@ This is LSP(Language Server Protocol) for Terraform - Should work with all lsp plugin on vim +### Sublime Text 3 + +Add this to the `clients` settings for [tomv564's LSP](https://github.com/tomv564/LSP) also make sure to have `terraform` syntax plugin for sublime text + +```json +{ + "clients": + { + "terraform": + { + "command": + [ + "terraform-lsp", + "-enable-log-file", + "-log-location", + "/tmp/" + ], + "enabled": true, + "scopes": ["source.terraform"], + "complete_all_chars": true, + "syntaxes": ["Packages/Terraform/Terraform.sublime-syntax"], + "languageId": "terraform" + } + } +} +``` + + ### Emacs - Work with [emacs-lsp/lsp-mode](https://github.com/emacs-lsp/lsp-mode) while still a little buggy