Add yet more language definitions.
This commit is contained in:
parent
fb792c5bca
commit
89f81be31b
3 changed files with 81 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -486,6 +486,7 @@ version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"helix-syntax",
|
"helix-syntax",
|
||||||
|
"log",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"regex",
|
"regex",
|
||||||
"ropey",
|
"ropey",
|
||||||
|
|
19
TODO.md
19
TODO.md
|
@ -3,6 +3,17 @@
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
- tree sitter:
|
||||||
|
- lua
|
||||||
|
- markdown
|
||||||
|
- zig
|
||||||
|
- regex
|
||||||
|
- vue
|
||||||
|
- kotlin
|
||||||
|
- julia
|
||||||
|
- clojure
|
||||||
|
- erlang
|
||||||
|
|
||||||
- [ ] use signature_help_provider and completion_provider trigger characters in
|
- [ ] use signature_help_provider and completion_provider trigger characters in
|
||||||
a hook to trigger signature help text / autocompletion
|
a hook to trigger signature help text / autocompletion
|
||||||
- [ ] document_on_type provider triggers
|
- [ ] document_on_type provider triggers
|
||||||
|
@ -19,8 +30,8 @@
|
||||||
- [ ] yank on delete
|
- [ ] yank on delete
|
||||||
- [ ] :x for closing buffers
|
- [ ] :x for closing buffers
|
||||||
|
|
||||||
- [ ] jumplist (push selections on goto / select on the view)
|
- [x] jumplist (push selections on goto / select on the view)
|
||||||
- [ ] repeat insert/command -> transaction
|
- [x] repeat insert/command -> transaction
|
||||||
- [ ] repeat selection
|
- [ ] repeat selection
|
||||||
|
|
||||||
- [] jump to alt buffer
|
- [] jump to alt buffer
|
||||||
|
@ -36,6 +47,9 @@
|
||||||
- [ ] lsp: formatting
|
- [ ] lsp: formatting
|
||||||
- [x] lsp: goto
|
- [x] lsp: goto
|
||||||
|
|
||||||
|
- [ ] search: wrap around file
|
||||||
|
- [ ] search: smart case by default: insensitive unless upper detected
|
||||||
|
|
||||||
- decide if markdown should have vertical padding too
|
- decide if markdown should have vertical padding too
|
||||||
|
|
||||||
- the hooks system should be better for pre/post insert.
|
- the hooks system should be better for pre/post insert.
|
||||||
|
@ -48,7 +62,6 @@
|
||||||
- [ ] bracket pairs
|
- [ ] bracket pairs
|
||||||
- [x] comment block (gcc)
|
- [x] comment block (gcc)
|
||||||
- [ ] completion signature popups/docs
|
- [ ] completion signature popups/docs
|
||||||
- [ ] multiple views into the same file
|
|
||||||
- [ ] selection align
|
- [ ] selection align
|
||||||
- [ ] store some state between restarts: file positions, prompt history
|
- [ ] store some state between restarts: file positions, prompt history
|
||||||
- [ ] highlight matched characters in completion
|
- [ ] highlight matched characters in completion
|
||||||
|
|
|
@ -19,6 +19,26 @@ path = "../helix-syntax/languages/tree-sitter-toml"
|
||||||
|
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "json"
|
||||||
|
scope = "source.json"
|
||||||
|
injection-regex = "json"
|
||||||
|
file-types = ["json"]
|
||||||
|
roots = []
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-json"
|
||||||
|
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "c"
|
||||||
|
scope = "source.c"
|
||||||
|
injection-regex = "c"
|
||||||
|
file-types = ["c"] # TODO: ["h"]
|
||||||
|
roots = []
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-c"
|
||||||
|
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "cpp"
|
name = "cpp"
|
||||||
scope = "source.cpp"
|
scope = "source.cpp"
|
||||||
|
@ -29,6 +49,18 @@ path = "../helix-syntax/languages/tree-sitter-cpp" # TODO: also C highlights
|
||||||
|
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "go"
|
||||||
|
scope = "source.go"
|
||||||
|
injection-regex = "go"
|
||||||
|
file-types = ["go"]
|
||||||
|
roots = ["Gopkg.toml", "go.mod"]
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-go"
|
||||||
|
|
||||||
|
language-server = { command = "gopls" }
|
||||||
|
# TODO: gopls needs utf-8 offsets
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "javascript"
|
name = "javascript"
|
||||||
scope = "source.js"
|
scope = "source.js"
|
||||||
|
@ -71,3 +103,35 @@ path = "../helix-syntax/languages/tree-sitter-python"
|
||||||
language-server = { command = "pyls" }
|
language-server = { command = "pyls" }
|
||||||
# TODO: pyls needs utf-8 offsets
|
# TODO: pyls needs utf-8 offsets
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "ruby"
|
||||||
|
scope = "source.ruby"
|
||||||
|
injection-regex = "ruby"
|
||||||
|
file-types = ["rb"]
|
||||||
|
roots = []
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-ruby"
|
||||||
|
|
||||||
|
language-server = { command = "solargraph", args = ["stdio"] }
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "bash"
|
||||||
|
scope = "source.bash"
|
||||||
|
injection-regex = "bash"
|
||||||
|
file-types = ["sh", "bash"]
|
||||||
|
roots = []
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-bash"
|
||||||
|
|
||||||
|
language-server = { command = "bash-language-server", args = ["start"] }
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "php"
|
||||||
|
scope = "source.php"
|
||||||
|
injection-regex = "php"
|
||||||
|
file-types = ["php"]
|
||||||
|
roots = []
|
||||||
|
path = "../helix-syntax/languages/tree-sitter-php"
|
||||||
|
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
Loading…
Add table
Reference in a new issue