Justin M. Keyes
bf4710d8c3
fix(lsp): "attempt to index nil config" #36189
...
Problem:
If a client doesn't have a config then an error may be thrown.
Probably caused by: 2f78ff816b
Lua callback: …/lsp.lua:442: attempt to index local 'config' (a nil value)
stack traceback:
…/lsp.lua:442: in function 'can_start'
…/lsp.lua:479: in function 'lsp_enable_callback'
…/lsp.lua:566: in function <…/lsp.lua:565>
Solution:
Not all clients necessarily have configs.
- Handle `config=nil` in `can_start`.
- If user "enables" an invalid name that happens to match a *client*
name, don't auto-detach the client.
2025-10-15 00:43:25 +00:00
..
2025-10-12 18:25:14 +00:00
2025-10-10 07:05:40 -07:00
2025-05-06 05:15:31 -07:00
2025-10-14 02:23:26 +00:00
2024-06-04 06:06:02 -07:00
2025-09-05 17:22:24 +08:00
2025-01-05 12:28:01 +01:00
2025-08-27 20:01:07 -07:00
2025-10-11 16:01:05 -07:00
2025-08-17 20:40:28 -07:00
2025-10-05 19:20:06 +03:00
2025-09-21 14:25:14 -07:00
2025-10-02 15:33:18 -07:00
2025-08-22 15:05:43 -05:00
2025-08-02 15:00:41 +03:00
2024-11-17 13:31:24 -08:00
2025-08-28 11:34:01 +02:00
2025-10-02 14:51:26 -07:00
2025-09-16 06:06:02 +08:00
2025-07-11 17:31:30 +02:00
2025-07-10 13:34:58 +01:00
2025-08-23 12:01:38 -07:00
2025-08-17 11:54:53 +08:00
2025-02-23 07:51:12 -08:00
2025-03-31 16:51:18 +01:00
2025-10-12 12:16:14 +08:00
2025-09-15 11:15:25 +08:00
2025-10-01 20:17:55 -07:00
2025-06-06 15:36:48 +01:00
2025-10-06 06:07:41 +08:00
2025-08-28 11:34:01 +02:00
2025-05-10 14:42:48 -07:00
2025-06-03 06:36:44 -07:00
2025-07-08 05:21:09 -07:00
2025-08-28 11:34:01 +02:00
2025-01-27 16:37:50 +00:00
2025-07-22 17:40:24 -07:00
2025-07-10 21:50:46 -04:00
2025-08-28 11:34:01 +02:00
2025-10-15 00:43:25 +00:00
2025-09-16 11:41:36 +08:00
2025-10-09 13:40:26 -07:00
2025-08-24 22:17:34 -04:00
2024-02-03 16:53:41 +01:00
2025-09-16 11:41:36 +08:00
2025-02-10 03:04:01 -08:00
2025-07-28 22:00:25 -04:00
2025-09-13 22:49:50 -04:00
2025-09-16 11:41:36 +08:00
2025-08-22 15:05:43 -05:00
2025-07-12 20:54:22 -07:00
2025-06-14 17:24:36 +02:00
2025-06-18 03:20:18 -07:00
2025-01-27 16:37:50 +00:00
2025-07-23 20:03:30 -07:00