Skip to content

Commit

Permalink
feat(ibl): more language nodes (#1288)
Browse files Browse the repository at this point in the history
* feat(ibl): more language nodes

Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>

* feat(ibl): even more language nodes

Signed-off-by: Charles Chiu <charleschiu@hey.com>

* chore(ibl): sorting

Signed-off-by: Charles Chiu <charleschiu@hey.com>

---------

Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
Signed-off-by: Charles Chiu <charleschiu@hey.com>
Co-authored-by: Charles Chiu <charleschiu@hey.com>
  • Loading branch information
Jint-lzxy and CharlesChiuGit authored Jun 13, 2024
1 parent 2e84827 commit 086bb81
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions lua/modules/configs/ui/indent-blankline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ return function()
"return_statement",
"switch_block",
},
dot = {
"block",
"attr_list",
},
ecma = {
"arguments",
"array",
Expand Down Expand Up @@ -102,6 +106,23 @@ return function()
"subroutine",
"where_statement",
},
gleam = {
"anonymous_function",
"assert",
"case",
"constant",
"external_function",
"function",
"import",
"let",
"list",
"constant",
"function",
"type_definition",
"type_alias",
"todo",
"tuple",
},
go = {
"call_expression",
"communication_case",
Expand All @@ -118,6 +139,7 @@ return function()
},
html = {
"start_tag",
"self_closing_tag",
},
java = {
"annotation_argument_list",
Expand Down Expand Up @@ -167,6 +189,11 @@ return function()
"tuple_expression",
"vector_expression",
},
just = {
"external_command",
"recipe",
"string",
},
linkerscript = {
"memory_command",
"output_section",
Expand Down Expand Up @@ -197,6 +224,20 @@ return function()
"pool",
"rule",
},
ocaml = {
"application_expression",
"do_clause",
"external",
"field_expression",
"if_expression",
"list_expression",
"parenthesized_expression",
"record_declaration",
"record_expression",
"try_expression",
"type_binding",
"value_specification",
},
pascal = {
"arrInitializer",
"block",
Expand Down Expand Up @@ -304,6 +345,13 @@ return function()
"use_list",
"where_clause",
},
scss = {
"block",
"declaration",
"each_statement",
"mixin_statement",
"while_statement",
},
sql = {
"case",
"column_definitions",
Expand Down Expand Up @@ -364,6 +412,12 @@ return function()
"return_statement",
"while_statement",
},
terraform = {
"block",
"function_call",
"object",
"tuple",
},
textproto = {
"message_list",
"message_value",
Expand Down Expand Up @@ -440,23 +494,28 @@ return function()
cuda = nodes.cpp,
d = nodes.d,
dart = nodes.dart,
dot = nodes.dot,
ecma = nodes.ecma,
elixir = nodes.elixir,
firrtl = nodes.firrtl,
fortran = nodes.fortran,
glsl = nodes.c,
gleam = nodes.gleam,
go = nodes.go,
hlsl = nodes.cpp,
html = nodes.html,
java = nodes.java,
javascript = nodes.javascript,
julia = nodes.julia,
just = nodes.just,
linkerscript = nodes.linkerscript,
lua = nodes.lua,
luau = nodes.lua,
matlab = nodes.matlab,
ninja = nodes.ninja,
objc = nodes.c,
ocaml = nodes.ocaml,
ocaml_interface = nodes.ocaml,
pascal = nodes.pascal,
php = nodes.php,
python = nodes.python,
Expand All @@ -465,12 +524,14 @@ return function()
readline = nodes.readline,
ruby = nodes.ruby,
rust = nodes.rust,
scss = nodes.scss,
sql = nodes.sql,
ssh_config = nodes.ssh_config,
swift = nodes.swift,
tablegen = nodes.tablegen,
tcl = nodes.tcl,
teal = nodes.teal,
terraform = nodes.terraform,
textproto = nodes.textproto,
toml = nodes.toml,
typescript = nodes.typescript,
Expand Down

0 comments on commit 086bb81

Please sign in to comment.