Files
neovim/runtime/doc
Lewis Russell 533cc0ab35 fix(vim.diagnostic): improve typing
Problem:

`vim.diagnostic.set()` doesn't actually accept a list of
`vim.Diagnostic` as internally `vim.diagnostic.set()` normalizes the
diagnostics and this normalization is assumed throughout the module.

Solution:

- Add a new type `vim.Diagnostic.Set` which is the input to `vim.diagnostic.set()`

- `col` is now an optional field and defaults to `0` to be consistent
  with `vim.diagnostic.match()`.

- Change `table.insert(t, x)` to `table[#table + 1] = x` for improved
  type checking.
2025-06-03 20:25:07 +01:00
..
2025-06-01 14:13:50 -07:00
2023-07-25 05:07:13 -07:00
2025-01-01 12:29:51 -08:00
2025-05-03 10:08:53 -07:00
2024-05-15 23:19:26 +02:00
2025-04-27 15:44:11 -07:00
2025-05-03 10:08:53 -07:00
2023-06-25 17:14:28 +02:00
2025-05-03 10:08:53 -07:00
2025-06-01 14:13:50 -07:00
2025-05-17 10:59:14 +02:00
2025-05-03 10:08:53 -07:00
2022-10-14 08:01:13 -07:00
2025-03-30 13:29:36 -07:00
2025-06-01 14:13:50 -07:00
2024-11-21 06:50:30 +08:00
2025-05-03 15:47:59 -07:00
2024-01-18 00:14:48 -08:00
2025-03-02 14:27:52 -08:00
2023-01-01 15:05:13 +01:00
2025-03-15 15:00:44 +01:00
2025-04-27 13:40:46 -07:00
2025-02-15 14:55:25 +01:00
2025-05-03 15:47:59 -07:00
2025-03-18 06:18:37 -07:00
2023-08-10 17:28:02 +08:00
2025-04-27 15:44:11 -07:00
2025-01-03 08:29:36 -08:00
2024-04-23 08:20:36 +08:00
2024-05-11 18:14:03 +08:00
2023-04-23 15:22:55 +02:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:14:28 +02:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2021-05-01 22:29:03 -04:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2023-06-25 17:14:28 +02:00
2021-04-29 20:42:16 -04:00
2023-06-26 11:29:12 +02:00
2023-07-25 05:07:13 -07:00
2021-04-27 09:21:34 -04:00
2023-06-19 08:40:33 -07:00
2025-05-03 15:47:59 -07:00
2025-03-18 06:18:37 -07:00