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 353
  • Mac 1K
  • Linux 583
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 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14
Windows 0 0 0 1 2 2 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 2 1 0 0 2 1 0 0 0 0 0 0 0 1 0 0 0 0 0
Mac 0 3 0 4 2 4 4 0 0 3 3 1 1 6 0 1 2 1 1 1 2 0 0 1 1 3 1 0 0 1 0 0 4 1 0 1 0 0 6 4 1 3 0 1 0 3
Linux 0 2 1 0 0 3 2 0 1 0 5 1 1 1 1 1 0 0 1 1 0 1 2 2 1 4 0 0 1 0 1 1 0 0 1 2 0 1 1 0 2 0 0 1 1 2

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,
    },
}