nvim-lspconfig icon indicating copy to clipboard operation
nvim-lspconfig copied to clipboard

refactor: improve get_clients_from_cmd_args

Open sys9kdr opened this issue 1 year ago • 2 comments
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.

sys9kdr avatar Dec 20 '23 16:12 sys9kdr

Probably works, but not thoroughly tested yet

sys9kdr avatar Dec 20 '23 16:12 sys9kdr

Manually, I confirmed that LspRestart and LspStop work.

sys9kdr avatar Dec 20 '23 23:12 sys9kdr