diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-01-06 01:35:11 +0900 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2020-01-05 08:35:11 -0800 |
| commit | 7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5 (patch) | |
| tree | 328df15f194e1ccf5f813d8b44cc2133a22b53bc /lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar.gz nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar.bz2 nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar.lz nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar.xz nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.tar.zst nvim-lspconfig-7803e64e1686f1a7fe4c1b8b42e24d8195f1dac5.zip | |
terraform-lsp #90
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp.lua | 1 | ||||
| -rw-r--r-- | lua/nvim_lsp/terraformls.lua | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua index bada9d81..a9bd1d07 100644 --- a/lua/nvim_lsp.lua +++ b/lua/nvim_lsp.lua @@ -23,6 +23,7 @@ require 'nvim_lsp/texlab' require 'nvim_lsp/tsserver' require 'nvim_lsp/vimls' require 'nvim_lsp/ocamlls' +require 'nvim_lsp/terraformls' local M = { util = require 'nvim_lsp/util'; diff --git a/lua/nvim_lsp/terraformls.lua b/lua/nvim_lsp/terraformls.lua new file mode 100644 index 00000000..a5914835 --- /dev/null +++ b/lua/nvim_lsp/terraformls.lua @@ -0,0 +1,26 @@ +local skeleton = require 'nvim_lsp/skeleton' +local util = require 'nvim_lsp/util' +local lsp = vim.lsp + +skeleton.terraformls = { + default_config = { + cmd = {"terraform-lsp"}; + filetypes = {"terraform"}; + root_dir = util.root_pattern(".git"); + log_level = lsp.protocol.MessageType.Warning; + settings = {}; + }; + docs = { + vscode = "mauve.terraform"; + description = [[ +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. +]]; + default_config = { + root_dir = [[root_pattern(".git")]]; + }; + }; +} +-- vim:et ts=2 sw=2 |
