ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-terraform

by sublimelsp ST4

Convenience package for the terraform language server

Details

Installs

  • Total 2K
  • Win 366
  • Mac 1K
  • Linux 598
May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13
Windows 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 2 0 0 1 0 0 0 0 2 2 1 0 0 2 0 0 1 2 2 0 0 0 0 1 0 0 0 0 0
Mac 2 0 1 0 5 0 1 1 2 0 1 1 3 3 2 2 0 1 2 3 0 3 1 1 0 3 0 2 0 1 0 3 0 4 2 4 4 0 0 3 3 1 1 6 0 1
Linux 0 3 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 0 2 0 0 2 0 0 2 1 2 1 0 0 3 2 0 1 0 5 1 1 1 1 1

Readme

Source
raw.​githubusercontent.​com

LSP-terraform

A convenience package to take advantage of the Terraform Language Server.

Installation

  1. Install LSP, LSP-terraform and Terraform Syntax from Package Control.
  2. Restart Sublime Text.
  3. (Optional but recommended) Install the LSP-file-watcher-chokidar via Package Control to enable functionality to notify the server about new files.

Optionally install the Terraform CLI for the validateOnSave and formatting functionality.

Configuration

You may edit the default settings by running Preferences: LSP-terraform Settings from the Command Palette.

Optionally you can view terraform-ls settings at Hashicorps repo

Formatting

The server supports formatting for the terraform files (equivalent to running terraform fmt). You can either trigger it manually from the Command Palette using the LSP: Format File command or automatically run it on saving the file. To enable formatting on save, open Preferences: LSP Settings from the Command Palette and add or modify the following setting:

{
    "lsp_code_actions_on_save": {
      "source.formatAll.terraform": true,
    },
}