summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/tflint.lua
blob: de2a1d8ce7757e227e3250a2de0ec8e1abb3bc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'tflint', '--langserver' },
    filetypes = { 'terraform' },
    root_dir = util.root_pattern('.terraform', '.git', '.tflint.hcl'),
  },
  docs = {
    description = [[
https://github.com/terraform-linters/tflint

A pluggable Terraform linter that can act as lsp server.
Installation instructions can be found in https://github.com/terraform-linters/tflint#installation.
]],
    default_config = {
      root_dir = [[root_pattern(".terraform", ".git", ".tflint.hcl")]],
    },
  },
}