all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#69088: [PATCH] Eagerly indent first field in tables in lua-ts-mode
@ 2024-02-13  1:00 john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
       [not found] ` <handler.69088.B.170779128814939.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 5+ messages in thread
From: john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-13  1:00 UTC (permalink / raw)
  To: 69088

Tags: patch

lua-ts-mode supports aligning table 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 patch fixes that so the initial indentation is correct from the beginning:

  local t = {
      |
  }





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

end of thread, other threads:[~2024-02-17  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13  1:00 bug#69088: [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
     [not found] ` <handler.69088.B.170779128814939.ack@debbugs.gnu.org>
2024-02-13  2:49   ` john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-13  3:21     ` Dmitry Gutov
2024-02-13  3:42       ` john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-17  8:58         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.