Justin M. Keyes
be1fbe38b3
feat(lua): vim.text.indent()
...
Problem:
Indenting text is a common task in plugins/scripts for
presentation/formatting, yet vim has no way of doing it (especially
"dedent", and especially non-buffer text).
Solution:
Introduce `vim.text.indent()`. It sets the *exact* indentation because
that's a more difficult (and thus more useful) task than merely
"increasing the current indent" (which is somewhat easy with a `gsub()`
one-liner).
2025-02-26 23:06:22 +01:00
..
2025-02-25 13:09:01 +01:00
2024-06-04 06:06:02 -07:00
2025-01-30 13:46:06 +01:00
2025-01-05 12:28:01 +01:00
2025-01-27 16:37:50 +00:00
2025-02-25 14:26:58 +01:00
2025-01-27 16:37:50 +00:00
2025-02-25 16:21:16 +01:00
2023-12-21 11:47:04 +08:00
2024-11-17 13:31:24 -08:00
2024-09-28 00:31:45 +02:00
2025-02-20 12:10:13 +00:00
2025-02-23 07:51:12 -08:00
2024-03-06 10:45:22 +00:00
2025-01-27 16:37:50 +00:00
2024-10-21 00:54:43 +02:00
2025-02-23 07:51:12 -08:00
2024-12-20 01:43:56 -08:00
2024-10-21 11:32:06 +01:00
2025-02-16 12:13:29 -08:00
2024-01-16 09:33:10 +00:00
2025-02-25 09:20:44 +00:00
2025-01-27 16:37:50 +00:00
2025-01-05 12:28:01 +01:00
2025-01-27 16:37:50 +00:00
2025-02-26 23:06:22 +01:00
2025-01-22 07:46:24 -08:00
2025-01-27 16:37:50 +00:00
2024-09-01 13:01:24 -07:00
2024-10-21 11:32:06 +01:00
2024-12-04 10:17:46 -06:00
2025-02-21 08:40:33 -08:00
2024-02-03 16:53:41 +01:00
2025-02-10 03:04:01 -08:00
2024-10-21 11:32:06 +01:00
2025-02-09 18:10:54 +01:00
2025-01-14 21:25:25 -08:00
2024-10-31 11:55:23 +00:00
2025-02-26 23:06:22 +01:00
2025-02-19 19:11:55 +01:00
2024-10-31 11:55:23 +00:00
2025-01-27 16:37:50 +00:00
2024-12-23 05:08:20 -08:00