LSP-terraform
Convenience package for the terraform language server
Details
Installs
- Total 3K
- Win 520
- Mac 2K
- Linux 772
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 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 2 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Mac | 2 | 3 | 8 | 1 | 5 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 1 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 5 | 2 | 0 | 0 | 1 | 1 | 0 | 1 | 2 | 0 | 2 | 2 | 3 | 0 | 1 |
Linux | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 2 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
LSP-terraform
A convenience package to take advantage of the Terraform Language Server.
Installation
- Install LSP, LSP-terraform and Terraform Syntax from Package Control.
- Restart Sublime Text.
- (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,
},
}