terraform-ls not recognized on lsp client
I'm trying to configure terraform-ls as a lsp client and I couldn't figure out a way to proper configure it.
here a sample of the json that I configured on the User Server Settings
:
{
"servers": {
"terraform": {
"command": ["/usr/bin/terraform-ls", "serve"],
"highlightingModeRegex": "^[tT]erraform$",
"rootIndicationFileNames": ["*.tf"]
}
}
}
Nothing is printed on the diagnostics part; I also tried to remove the highlightingModeRegex
; I tried use main.tf
as the rootIndicationFileNames
; nothing seems to trigger the terraform-ls command.