refactor(lsp): simplify client tracking

- Remove:
    - uninitialized_clients
    - active_clients
    - all_buffer_active_clients
- Add:
    - all_clients

- Use `lsp.get_clients()` to get buffer clients.
This commit is contained in:
Lewis Russell
2024-03-21 15:15:20 +00:00
committed by Lewis Russell
parent 7e38630874
commit 00e71d3da3
5 changed files with 176 additions and 213 deletions

View File

@@ -907,8 +907,8 @@ stop_client({client_id}, {force}) *vim.lsp.stop_client()*
for this client, then force-shutdown is attempted.
Parameters: ~
• {client_id} (`integer|vim.lsp.Client`) id or |vim.lsp.Client| object,
or list thereof
• {client_id} (`integer|integer[]|vim.lsp.Client[]`) id, list of id's,
or list of |vim.lsp.Client| objects
• {force} (`boolean?`) shutdown forcefully
tagfunc({pattern}, {flags}) *vim.lsp.tagfunc()*