From 9a197e4f89f95832b7940985fd3aeccb129f3a07 Mon Sep 17 00:00:00 2001 From: teddylear Date: Wed, 27 Jul 2022 08:41:13 -0400 Subject: [PATCH] Update usage doc supported filetypes and neovim docs (#999) * feat: Update usage doc about support filetypes * feat: Update neovim configuration with lua only option * fix: add setting *.tfvars for vim and lua configuration for neovim * further clarify language IDs situation Co-authored-by: Radek Simko --- docs/USAGE.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 2355d184a..fa049019e 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -4,6 +4,19 @@ This guide assumes you have installed the server by following instructions in the [README.md](../README.md) if that is applicable to your client (i.e. if the client doesn't download the server itself). +The following filetypes are supported by the Terraform Language Server: + +- `terraform` - standard `*.tf` config files +- `terraform-vars` - variable files (`*.tfvars`) + +*NOTE* Clients should be configured to follow the above language ID conventions +and do **not** send `*.tf.json`, `*.tfvars.json` nor Packer HCL config +nor any other HCL config files as the server is not +equipped to handle these file types. + +In most clients with a dedicated Terraform extension/plugin this is +already the default configuration, so you should not need to worry about it. + Instructions for popular IDEs are below and pull requests for updates or addition of more IDEs are welcomed. @@ -141,13 +154,22 @@ let g:LanguageClient_serverCommands = { ### Neovim v0.5.0+ - Install the [nvim-lspconfig plugin](https://github.com/neovim/nvim-lspconfig) - - Add the following to your `.vimrc`: + - Add the following to your `.vimrc` or `init.vim`: ```vim lua <