nvim-lspconfig
nvim-lspconfig copied to clipboard
refactor: improve get_clients_from_cmd_args
trafficstars
improve the get_clients_from_cmd_args for better readability and consistency.
- Replaced dictionary-based storage with a table for clients in the get_clients_from_cmd_args function.
- Utilized the '#' operator to accurately count clients and enhance code readability.
- Updated the condition for checking if the result table is empty using the '#' operator.
Probably works, but not thoroughly tested yet
Manually, I confirmed that LspRestart and LspStop work.