From 67f7fb2fe82d170c681e6c0da67aa848e6f5a742 Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Mon, 18 Mar 2024 18:47:18 +0100 Subject: feat: add support for nimpretty (#343) * feat: add support for nimpretty * fix: add formatter type --- lua/conform/formatters/nimpretty.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/nimpretty.lua (limited to 'lua/conform/formatters') diff --git a/lua/conform/formatters/nimpretty.lua b/lua/conform/formatters/nimpretty.lua new file mode 100644 index 0000000..0cb5be2 --- /dev/null +++ b/lua/conform/formatters/nimpretty.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/nim-lang/nim", + description = "nimpretty is a Nim source code beautifier that follows the official style guide.", + }, + command = "nimpretty", + args = { "$FILENAME" }, + stdin = false, +} -- cgit v1.2.3-70-g09d2