unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69089: [PATCH] Eagerly indent first field in tables in lua-ts-mode
@ 2024-02-13  1:23 john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-13  3:33 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-13  1:23 UTC (permalink / raw)
  To: 69089

Tags: patch

lua-ts-mode supports aligning sibling fields to the first field
so that you can have code like:

  local t = { a = 1,
              b = 2, }

However if you prefer to put the first field on a newline like:

  local t = {
      a = 1,
      b = 2,
  }

the indentation doesn’t happen until you press RET after the
first comma. So you initially have something like (where | is
point):

  local t = {
  |
  }

This fixes that so the initial indentation is correct from the
beginning:

  local t = {
      |
  }





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#69089: [PATCH] Eagerly indent first field in tables in lua-ts-mode
  2024-02-13  1:23 bug#69089: [PATCH] Eagerly indent first field in tables in lua-ts-mode john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-02-13  3:33 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-02-13  3:33 UTC (permalink / raw)
  To: john muhl; +Cc: 69089

merge 69089 69088
thanks

> Date: Mon, 12 Feb 2024 19:23:03 -0600
> From:  john muhl via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Tags: patch
> 
> lua-ts-mode supports aligning sibling fields to the first field
> so that you can have code like:

Merging the duplicate report.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-13  3:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13  1:23 bug#69089: [PATCH] Eagerly indent first field in tables in lua-ts-mode john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-13  3:33 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).