Skip to content

Commit

Permalink
Add nim language support.
Browse files Browse the repository at this point in the history
  • Loading branch information
theherk committed Aug 2, 2022
1 parent 69f84e2 commit 11f03ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
| meson || || |
| mint | | | | `mint` |
| nickel || || `nls` |
| nim | | | | `nimlangserver` |
| nix || || `rnix-lsp` |
| nu || | | |
| ocaml || || `ocamllsp` |
Expand Down
16 changes: 16 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,22 @@ indent = { tab-width = 2, unit = " " }
name = "nickel"
source = { git = "https://github.com/nickel-lang/tree-sitter-nickel", rev = "9d83db400b6c11260b9106f131f93ddda8131933" }

[[language]]
name = "nim"
scope = "source.nim"
injection-regex = "nim"
file-types = ["nim", "nims"]
shebangs = ["nim"]
roots = []
auto-format = true
comment-token = "#"
language-server = { command = "nimlangserver" }
indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "nim"
source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "d8cc0eaa4ba02685690ebe014d7c808cc1f8c789" }

[[language]]
name = "nix"
scope = "source.nix"
Expand Down

0 comments on commit 11f03ec

Please sign in to comment.