blob: 7ea0a20f0cfd10db21d20b2df734cf6ab6e364b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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.
]],
},
}
|