Sublime Forum

Putting curly brackets one tab farther

#1

Hello there!
So when coding with Lua, when I create a table using the {} braces, It puts it like this:

local sometable = {
  [1] = {
    from = "Some Value",
    to = "Some Other Value",
    text = {      			

  } -- <- What is this?
  },
  [2] = {[...]}
}

So I was wondering if there was an option to put it like one tab farther so it makes sense

Thanks for the support,
Cheers!

0 Likes

#2

it looks like this could fix your issue:

0 Likes

#3

@kingkeith

Sorry, I’m not completely used to GitHub, but I’m learning. The link you sent is basically a pull request waiting to be merged into the main branch right? So it’s gonna be added in the next few updates?

Also, thanks for the quick response.

0 Likes

#4

correct. There are instructions at https://github.com/sublimehq/Packages/blob/master/README.md#installation if you want to try the changes out yourself without waiting, however. You’ll need to checkout the branch from the PR, there are various git guides around which should help you :slight_smile:

2 Likes