diff options
author | Michael Daffin | 2022-02-23 14:25:44 +0000 |
---|---|---|
committer | GitHub | 2022-02-23 14:25:44 +0000 |
commit | f83843ceba65f7719d8b208eda0ebf15fae77603 (patch) | |
tree | 3048637d7fcc28e48eb564f9f4058d58e109925c /languages.toml | |
parent | 40eb1268c72b60f1249389c58892e7c45d268cff (diff) |
Add kotlin language (#1689)
* Add kotlin language
Queries taken from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/kotlin seem to work well enough for my needs though I don't use kotlin heavily.
* Update lang-support doc
* Updates the kotlin highlight query to use helixs scopes
* Updates the queries from PR feedback
* Adds 'shallow = true' to gitmodules
* Removes kotlin locals.scm
* Remove blank line
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml index 35758566..9876bcf1 100644 --- a/languages.toml +++ b/languages.toml @@ -741,3 +741,12 @@ file-types = ["erl", "hrl", "app", "rebar.config"] roots = ["rebar.config"] comment-token = "%%" indent = { tab-width = 4, unit = " " } + +[[language]] +name = "kotlin" +scope = "source.kotlin" +file-types = ["kt", "kts"] +roots = ["settings.gradle", "settings.gradle.kts"] +comment-token = "//" +indent = { tab-width = 4, unit = " " } +language-server = { command = "kotlin-language-server" } |