All Projects → fatih → vim-hclfmt

fatih / vim-hclfmt

Licence: other
Vim plugin for hclfmt

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-hclfmt

K2tf
Kubernetes YAML to Terraform HCL converter
Stars: ✭ 477 (+601.47%)
Mutual labels:  hcl, hashicorp
Hcloud Okd4
Deploy OKD4 (OpenShift) on Hetzner Cloud
Stars: ✭ 29 (-57.35%)
Mutual labels:  hcl, hashicorp
Hcl
HCL is the HashiCorp configuration language.
Stars: ✭ 3,749 (+5413.24%)
Mutual labels:  hcl, hashicorp
Atlantis On Gke
A set of @HashiCorp Terraform configurations for running Atlantis on @GoogleCloud GKE
Stars: ✭ 44 (-35.29%)
Mutual labels:  hcl, hashicorp
stein
A linter for config files with a customizable rule set
Stars: ✭ 92 (+35.29%)
Mutual labels:  hcl, hashicorp
vim-hcl
Syntax highlighting for HashiCorp Configuration Language (HCL)
Stars: ✭ 83 (+22.06%)
Mutual labels:  hcl, hashicorp
Terraform Best Practices
Terraform Best Practices for AWS users
Stars: ✭ 931 (+1269.12%)
Mutual labels:  hcl, hashicorp
Nomadfiles
A collection of Nomad job files for deploying applications to a cluster
Stars: ✭ 89 (+30.88%)
Mutual labels:  hcl, hashicorp
Vaultron
🤖 Vault clusters Terraformed onto Docker for great fun and learning!
Stars: ✭ 96 (+41.18%)
Mutual labels:  hcl, hashicorp
terraform-github-actions-demo
HashiCorp Terraform Github Actions Demo for Github Satellite 2020.
Stars: ✭ 40 (-41.18%)
Mutual labels:  hcl, hashicorp
rust-hcl
A Rust library for working with the HashiCorp Configuration Language (HCL).
Stars: ✭ 14 (-79.41%)
Mutual labels:  hcl, hashicorp
consul-envoy
Consul to Envoy API listener
Stars: ✭ 35 (-48.53%)
Mutual labels:  hashicorp
terraform-aws-autoscaling
A terraform module which provisions an auto scaling group along with its launch template
Stars: ✭ 32 (-52.94%)
Mutual labels:  hcl
ansible-role-packer-debian
Ansible Role - Packer Debian/Ubuntu Configuration for Vagrant VirtualBox
Stars: ✭ 32 (-52.94%)
Mutual labels:  hashicorp
azure-vdc
Automated VDC on Azure
Stars: ✭ 16 (-76.47%)
Mutual labels:  hcl
terraform-aws-elasticache
Terraform module to create Elasticache Cluster and replica for Redis and Memcache.
Stars: ✭ 19 (-72.06%)
Mutual labels:  hcl
hcl-to-json
HCL to JSON converter in CoffeeScript
Stars: ✭ 15 (-77.94%)
Mutual labels:  hcl
bufstop
Fast and efficient buffer switching for Vim
Stars: ✭ 82 (+20.59%)
Mutual labels:  vim-plugins
vim-js-file-import
Import/require files in javascript and typescript with single button!
Stars: ✭ 130 (+91.18%)
Mutual labels:  vim-plugins
vault-plugin-secrets-github
Create ephemeral, finely-scoped @github access tokens using @hashicorp Vault.
Stars: ✭ 139 (+104.41%)
Mutual labels:  hashicorp

Archived project. No maintenance.

This project is not maintained anymore and is archived. Feel free to fork and make your own changes if needed. For more detail read my blog post: Taking an indefinite sabbatical from my projects

Thanks to everyone for their valuable feedback and contributions.

vim-hclfmt

Vim plugin to format Hashicorp Configuration Language (HCL) files, this format is used by a number of Hashicorp tools, such as Terraform as the language used for configuration.

The plugin by default will format *.hcl, *.tf and *.nomad files on save. Under the hood it uses hclfmt to process the files.

hclfmt

Usage

Save the file or call :HclFmt.

By default vim-hclfmt automatically formats *.hcl, *.tf and *.nomad files. You can permanently set this configuration in your ~/.vimrc as follows:

let g:hcl_fmt_autosave = 0
let g:tf_fmt_autosave = 0
let g:nomad_fmt_autosave = 0

Install

Vim-hclfmt follows the standard runtime path structure. For Pathogen just clone the repo. For other plugin managers add the appropriate lines and execute the plugin's install command.

  • Pathogen
  • git clone https://github.com/fatih/vim-hclfmt.git ~/.vim/bundle/vim-hclfmt
  • vim-plug
  • Plug 'fatih/vim-hclfmt'
  • NeoBundle
  • NeoBundle 'fatih/vim-hclfmt'
  • Vundle
  • Plugin 'fatih/vim-hclfmt'

If hclfmt is not already installed:

go get github.com/fatih/hclfmt
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].