aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Lithammer <peter.lithammer@gmail.com>2020-09-06 00:07:53 +0200
committerGitHub <noreply@github.com>2020-09-05 15:07:53 -0700
commit35758f5eebb90a8a1d30975cb0a81531f97d7deb (patch)
tree7b8dd7d1a8b605749ff19d6e6e50e077b5565990
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar.gz
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar.bz2
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar.lz
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar.xz
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.tar.zst
nvim-lspconfig-35758f5eebb90a8a1d30975cb0a81531f97d7deb.zip
terraform-ls: switch to Hashicorp Terraform language server #345
The `juliosueiras/terraform-lsp` project readme says: > The aim to have a unified lsp for terraform in the future, but for now there is two concurrent development with collabration to each other, this repo is aim for more experimental features, and the terraform-ls is aim for stableness Hashicorp's seems to be more actively developed nowadays as well. https://github.com/hashicorp/terraform-ls
-rw-r--r--README.md14
-rw-r--r--lua/nvim_lsp/terraformls.lua4
2 files changed, 13 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3c4147a4..bd996658 100644
--- a/README.md
+++ b/README.md
@@ -992,6 +992,14 @@ This server accepts configuration via the `settings` key.
Whether to consider files ending \'\_test\.dart\' that are outside of the test folder as tests\. This should be enabled if you put tests inside the \'lib\' folder of your Flutter application so they will be run with \'flutter test\' and not \'flutter run\'\.
+- **`dart.analysisExcludedFolders`**: `array`
+
+ Default: `{}`
+
+ Array items: `{type = "string"}`
+
+ An array of paths to be excluded from Dart analysis\. This option should usually be set at the Workspace level\.
+
- **`dart.analysisServerFolding`**: `boolean`
Default: `true`
@@ -3027,7 +3035,7 @@ require'nvim_lsp'.omnisharp.setup{}
Commands:
Default Values:
- cmd = { "/home/runner/.cache/nvim/nvim_lsp/omnisharp/run", "--languageserver", "--hostPID", "2793" }
+ cmd = { "/home/runner/.cache/nvim/nvim_lsp/omnisharp/run", "--languageserver", "--hostPID", "2699" }
filetypes = { "cs", "vb" }
init_options = {}
on_new_config = <function 1>
@@ -4666,7 +4674,7 @@ require'nvim_lsp'.sumneko_lua.setup{}
https://github.com/juliosueiras/terraform-lsp
Terraform language server
-You can use [released binary](https://github.com/juliosueiras/terraform-lsp/releases) or [build](https://github.com/juliosueiras/terraform-lsp#building) your own.
+Download a released binary from https://github.com/hashicorp/terraform-ls/releases.
This server accepts configuration via the `settings` key.
<details><summary>Available settings:</summary>
@@ -4701,7 +4709,7 @@ require'nvim_lsp'.terraformls.setup{}
Commands:
Default Values:
- cmd = { "terraform-lsp" }
+ cmd = { "terraform-ls" }
filetypes = { "terraform" }
root_dir = root_pattern(".terraform", ".git")
```
diff --git a/lua/nvim_lsp/terraformls.lua b/lua/nvim_lsp/terraformls.lua
index a93113e1..0a65ff23 100644
--- a/lua/nvim_lsp/terraformls.lua
+++ b/lua/nvim_lsp/terraformls.lua
@@ -3,7 +3,7 @@ local util = require 'nvim_lsp/util'
configs.terraformls = {
default_config = {
- cmd = {"terraform-lsp"};
+ cmd = {"terraform-ls"};
filetypes = {"terraform"};
root_dir = util.root_pattern(".terraform", ".git");
};
@@ -13,7 +13,7 @@ configs.terraformls = {
https://github.com/juliosueiras/terraform-lsp
Terraform language server
-You can use [released binary](https://github.com/juliosueiras/terraform-lsp/releases) or [build](https://github.com/juliosueiras/terraform-lsp#building) your own.
+Download a released binary from https://github.com/hashicorp/terraform-ls/releases.
]];
default_config = {
root_dir = [[root_pattern(".terraform", ".git")]];