Skip to content

Commit 6874087

Browse files
feat: add formatter for Inko (#351)
This adds support for formatting Inko (https://inko-lang.org/) source files using the `inko fmt` command.
1 parent ac4a022 commit 6874087

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ You can view this list in vim with `:help conform-formatters`
233233
- [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier) - A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
234234
- [indent](https://www.gnu.org/software/indent/) - GNU Indent.
235235
- [injected](doc/advanced_topics.md#injected-language-formatting-code-blocks) - Format treesitter injected languages.
236+
- [inko](https://inko-lang.org/) - A language for building concurrent software with confidence.
236237
- [isort](https://github.com/PyCQA/isort) - Python utility / library to sort imports alphabetically and automatically separate them into sections and by type.
237238
- [joker](https://github.com/candid82/joker) - Small Clojure interpreter, linter and formatter.
238239
- [jq](https://github.com/stedolan/jq) - Command-line JSON processor.

doc/conform.txt

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ FORMATTERS *conform-formatter
253253
embedded Ruby. Ideal for tidying up Rails templates.
254254
`indent` - GNU Indent.
255255
`injected` - Format treesitter injected languages.
256+
`inko` - A language for building concurrent software with confidence.
256257
`isort` - Python utility / library to sort imports alphabetically and
257258
automatically separate them into sections and by type.
258259
`joker` - Small Clojure interpreter, linter and formatter.

lua/conform/formatters/inko.lua

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://inko-lang.org/",
5+
description = "A language for building concurrent software with confidence",
6+
},
7+
command = "inko",
8+
args = { "fmt", "-" },
9+
}

0 commit comments

Comments
 (0)