mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 20:01:33 +00:00
Automatically indent the cursor when adding a newline after a {
in Gleam code files (#8097)
Fixes: https://github.com/zed-industries/zed/issues/7295 Release Notes: - Fixed a bug where adding a newline after a `{` would not automatically indent the cursor in Gleam code files ([#7295](https://github.com/zed-industries/zed/issues/7295)).
This commit is contained in:
parent
cd640a87a9
commit
58a5a1eb8f
2 changed files with 4 additions and 0 deletions
|
@ -494,6 +494,9 @@
|
|||
"Elixir": {
|
||||
"tab_size": 2
|
||||
},
|
||||
"Gleam": {
|
||||
"tab_size": 2
|
||||
},
|
||||
"Go": {
|
||||
"tab_size": 4,
|
||||
"hard_tabs": true,
|
||||
|
|
1
crates/zed/src/languages/gleam/indents.scm
Normal file
1
crates/zed/src/languages/gleam/indents.scm
Normal file
|
@ -0,0 +1 @@
|
|||
(_ "{" "}" @end) @indent
|
Loading…
Reference in a new issue