Gregory Anders
d675bd01b1
feat(lua): allow vim.F.if_nil to take multiple arguments ( #22903 )
...
The first argument which is non-nil is returned. This is useful when
using nested default values (e.g. in the EditorConfig plugin).
Before:
local enable = vim.F.if_nil(vim.b.editorconfig, vim.F.if_nil(vim.g.editorconfig, true))
After:
local enable = vim.F.if_nil(vim.b.editorconfig, vim.g.editorconfig, true)
2023-04-07 08:22:47 -06:00
..
2023-04-04 19:07:33 +02:00
2022-10-17 15:24:37 +01:00
2022-12-08 16:33:38 +01:00
2023-04-07 16:11:02 +02:00
2023-04-02 23:01:48 +08:00
2023-02-28 09:34:27 +01:00
2021-09-13 16:33:41 +02:00
2023-04-07 08:22:47 -06:00
2021-05-01 22:29:03 -04:00
2023-01-08 12:31:38 -08:00
2023-04-07 08:22:47 -06:00
2023-04-01 15:07:16 +02:00
2022-03-13 04:52:45 +00:00
2023-02-28 09:34:27 +01:00
2022-08-20 10:04:55 +02:00
2023-01-25 09:46:00 +08:00
2019-07-29 20:50:07 +02:00
2023-03-07 20:16:52 +01:00
2022-08-05 12:23:41 +02:00
2022-10-17 08:52:40 +02:00
2014-07-29 02:12:31 +00:00
2021-06-11 01:01:02 +06:00
2014-07-29 02:12:31 +00:00
2021-06-11 01:01:02 +06:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2021-04-27 09:21:32 -04:00
2023-01-03 10:07:43 +00:00
2019-07-29 20:50:07 +02:00
2022-10-13 05:48:12 -07:00
2023-04-07 13:26:29 +02:00
2022-05-13 11:58:22 -07:00
2019-03-11 21:00:12 +01:00
2023-03-13 10:29:11 +08:00
2022-10-17 08:19:48 +02:00