mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Add Nix syntax
This commit is contained in:
parent
01760c3845
commit
38073fd64c
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -86,3 +86,6 @@
|
|||||||
path = helix-syntax/languages/tree-sitter-elixir
|
path = helix-syntax/languages/tree-sitter-elixir
|
||||||
url = https://github.com/IceDragon200/tree-sitter-elixir
|
url = https://github.com/IceDragon200/tree-sitter-elixir
|
||||||
shallow = true
|
shallow = true
|
||||||
|
[submodule "helix-syntax/languages/tree-sitter-nix"]
|
||||||
|
path = helix-syntax/languages/tree-sitter-nix
|
||||||
|
url = https://github.com/cstrahan/tree-sitter-nix
|
||||||
|
1
helix-syntax/languages/tree-sitter-nix
Submodule
1
helix-syntax/languages/tree-sitter-nix
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 50f38ceab667f9d482640edfee803d74f4edeba5
|
@ -68,18 +68,19 @@ macro_rules! mk_langs {
|
|||||||
// 2) tree-sitter function to call to get a Language
|
// 2) tree-sitter function to call to get a Language
|
||||||
(Agda, tree_sitter_agda),
|
(Agda, tree_sitter_agda),
|
||||||
(Bash, tree_sitter_bash),
|
(Bash, tree_sitter_bash),
|
||||||
(C, tree_sitter_c),
|
|
||||||
(CSharp, tree_sitter_c_sharp),
|
|
||||||
(Cpp, tree_sitter_cpp),
|
(Cpp, tree_sitter_cpp),
|
||||||
|
(CSharp, tree_sitter_c_sharp),
|
||||||
(Css, tree_sitter_css),
|
(Css, tree_sitter_css),
|
||||||
|
(C, tree_sitter_c),
|
||||||
(Elixir, tree_sitter_elixir),
|
(Elixir, tree_sitter_elixir),
|
||||||
(Go, tree_sitter_go),
|
(Go, tree_sitter_go),
|
||||||
// (Haskell, tree_sitter_haskell),
|
// (Haskell, tree_sitter_haskell),
|
||||||
(Html, tree_sitter_html),
|
(Html, tree_sitter_html),
|
||||||
(Java, tree_sitter_java),
|
|
||||||
(Javascript, tree_sitter_javascript),
|
(Javascript, tree_sitter_javascript),
|
||||||
|
(Java, tree_sitter_java),
|
||||||
(Json, tree_sitter_json),
|
(Json, tree_sitter_json),
|
||||||
(Julia, tree_sitter_julia),
|
(Julia, tree_sitter_julia),
|
||||||
|
(Nix, tree_sitter_nix),
|
||||||
(Php, tree_sitter_php),
|
(Php, tree_sitter_php),
|
||||||
(Python, tree_sitter_python),
|
(Python, tree_sitter_python),
|
||||||
(Ruby, tree_sitter_ruby),
|
(Ruby, tree_sitter_ruby),
|
||||||
|
@ -116,6 +116,15 @@ 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 = "nix"
|
||||||
|
scope = "source.nix"
|
||||||
|
injection-regex = "nix"
|
||||||
|
file-types = ["nix"]
|
||||||
|
roots = []
|
||||||
|
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "ruby"
|
name = "ruby"
|
||||||
scope = "source.ruby"
|
scope = "source.ruby"
|
||||||
|
Loading…
Reference in New Issue
Block a user