From a5526fb2ee963cf426ab6d6ba1f3eb82887b1c22 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli <506791+stevearc@users.noreply.github.com> Date: Fri, 29 Sep 2023 11:56:21 -0700 Subject: feat: format injected languages (#83) --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 356b587..d2ea56e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Lightweight yet powerful formatter plugin for Neovim - **Fixes bad-behaving LSP formatters** - Some LSP servers are lazy and simply replace the entire buffer, leading to the problems mentioned above. Conform hooks into the LSP handler and turns these responses into proper piecewise changes. - **Enables range formatting for all formatters** - Since conform calculates minimal diffs, it can perform range formatting even if the underlying formatter doesn't support it. - **Simple API** - Conform exposes a simple, imperative API modeled after `vim.lsp.buf.format()`. +- **Formats embedded code blocks** - Use the `injected` formatter to format code blocks e.g. in markdown files. ## Installation @@ -192,6 +193,7 @@ To view configured and available formatters, as well as to see the log file, run - [golines](https://github.com/segmentio/golines) - A golang formatter that fixes long lines - [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier) - A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates. - [indent](https://www.gnu.org/software/indent/) - GNU Indent +- [injected](lua/conform/formatters/injected.lua) - Format treesitter injected languages. - [isort](https://github.com/PyCQA/isort) - Python utility / library to sort imports alphabetically and automatically separate them into sections and by type. - [jq](https://github.com/stedolan/jq) - Command-line JSON processor. - [latexindent](https://github.com/cmhughes/latexindent.pl) - A perl script for formatting LaTeX files that is generally included in major TeX distributions. -- cgit v1.2.3-70-g09d2