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 3K
  • Win 424
  • Mac 2K
  • Linux 667
Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20
Windows 0 4 0 0 0 0 1 0 1 0 0 0 0 0 1 0 2 2 1 0 0 0 0 0 3 0 0 0 0 2 1 0 0 0 0 2 0 0 0 0 1 0 0 1 0 1
Mac 0 2 4 2 1 0 0 0 1 2 1 1 0 1 2 4 0 0 3 0 1 2 0 1 1 0 1 1 0 4 2 1 0 1 0 2 0 1 0 2 0 0 1 4 1 1
Linux 0 0 1 1 0 0 1 0 0 1 2 0 0 0 0 1 0 0 1 1 0 1 1 1 1 0 0 0 0 1 0 0 0 0 0 1 0 5 0 1 1 0 2 2 0 0

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