September 3, 2024

Neovim and Visual Studio Code support for Fabric Configuration Language

We’re excited to introduce new features that will make working with Fabric Configuration Language (FCL) more efficient and enjoyable for developers!

Fabric Configuration Language (FCL) is built on HashiCorp Configuration Language (HCL) because of its modularity, readability, and simplicity. We chose HCL to ensure that security practitioners can quickly understand and manage their template configurations. With the new editor features, users can focus on creating effective and efficient reporting templates without worrying about syntax complexities.

Neovim plugin

We’ve developed fabric.nvim, a Neovim plugin that adds syntax support for FCL. The plugin uses a FCL-specific tree-sitter dialect for tree-sitter-hcl parser.

This plugin not only improves the readability of the template files but also brings code highlighting to embedded JQ and Go-templates code blocks. Whether you’re writing complex JQ queries or template blocks, Neovim now provides clear color-coded feedback to make your work smoother and faster.

Neovim support for Fabric Configuration Language with syntax highlighting for embedded
languages

For installation instructions, check out the plugin’s README.

Visual Studio Code extension

For those who use Visual Studio Code, we’ve created the vscode-fabric extension. This extension brings FCL syntax support, with syntax highlighting for embedded JQ in Fabric templates, making it easier to create, understand, and maintain FCL files.

Visual Studio Code support for Fabric Configuration Language with syntax highlighting for embedded languages

You can find installation details in the extension’s README.

Why it matters

Syntax highlighting is a simple yet powerful feature that can significantly improve the coding experience by reducing errors and making complex configurations easier to manage. One of our main goals with Fabric is to reduce operational overhead, and these enhancements make it easier to create and maintain reporting templates.

We’re eager to see how these updates will boost your productivity. As always, we’d love to hear your feedback as we continue to improve Fabric. Happy coding!

Stay tuned for more updates, and feel free to share your thoughts with us!