LSP-terraform
Convenience package for the terraform language server
Details
Installs
- Total 2K
- Win 367
- Mac 1K
- Linux 599
Jun 2 | Jun 1 | May 31 | May 30 | May 29 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 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 |
Mac | 0 | 2 | 3 | 1 | 1 | 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 |
Linux | 0 | 0 | 0 | 0 | 1 | 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 |
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,
},
}