Skip to content

Commit

Permalink
feat: add formatter for Inko (#351)
Browse files Browse the repository at this point in the history
This adds support for formatting Inko (https://inko-lang.org/) source
files using the `inko fmt` command.
  • Loading branch information
yorickpeterse authored Mar 28, 2024
1 parent ac4a022 commit 6874087
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ You can view this list in vim with `:help conform-formatters`
- [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](doc/advanced_topics.md#injected-language-formatting-code-blocks) - Format treesitter injected languages.
- [inko](https://inko-lang.org/) - A language for building concurrent software with confidence.
- [isort](https://github.com/PyCQA/isort) - Python utility / library to sort imports alphabetically and automatically separate them into sections and by type.
- [joker](https://github.com/candid82/joker) - Small Clojure interpreter, linter and formatter.
- [jq](https://github.com/stedolan/jq) - Command-line JSON processor.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ FORMATTERS *conform-formatter
embedded Ruby. Ideal for tidying up Rails templates.
`indent` - GNU Indent.
`injected` - Format treesitter injected languages.
`inko` - A language for building concurrent software with confidence.
`isort` - Python utility / library to sort imports alphabetically and
automatically separate them into sections and by type.
`joker` - Small Clojure interpreter, linter and formatter.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/inko.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://inko-lang.org/",
description = "A language for building concurrent software with confidence",
},
command = "inko",
args = { "fmt", "-" },
}

0 comments on commit 6874087

Please sign in to comment.