Skip to content

JannoTjarks/tflint.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tflint.nvim

GitHub release License: MPL 2.0

tflint.nvim is a plugin for integrating tflint into neovim.

The original idea came from a very personal need. I like tflint a lot. It is part of my neovim language server setup and I even contributed code to the Microsoft Azure plugin (tflint-ruleset-azurerm) myself.

In my company we have a lot of repositories with Terraform code and the implementation of a tool to automate dependencies for automating dependencies like renovate was missing in our IaC department. This leads to a lot of different versions of tflint plugins used in different repositories.

So the first idea was to automate the installation of the plugins... Because that was something I always forgot to do ;)

Feature

[x] Automated installation of all plugins specified in the .tflint.hcl

Installation

lazy.nvim

You can use the following snippet to install tflint.nvim, if you installed tflint with mason.nvim. (Or at least if tflint is stored in the mason.nvim default path ~/.local/share/nvim/mason/bin/tflint)

{
    "JannoTjarks/tflint.nvim",
    version = "*",
    dependencies = {
        "neovim/nvim-lspconfig"
    },
    lazy = true,
    ft = "terraform",
}

Or use this snippet, if you have the tflint binary on a different path.

{
    "JannoTjarks/tflint.nvim",
    version = "*",
    dependencies = {
        "neovim/nvim-lspconfig"
    },
    lazy = true,
    ft = "terraform",
    config = function()
        require("tflint").setup({ tflint_path = "/path/to/tflint" })
    end
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published