Updates vim.lsp.get_active_clients to vim.lsp.get_clients if it's available since this function is getting deprecated in the upcoming v0.10 release. This simply provides some future proofing when that original function gets removed
Adds an execute_for_clients call that executes the callback for all clients rather than just the first one like execute_for_client. This is very useful for creating hooks like the pyright one
Adds back in the pylance hook just in case anyone uses it for any reason
Formats the Lua code in the README to follow the provided stylua configuration.
This PR does a few general purpose cleanups:
vim.lsp.get_active_clients
tovim.lsp.get_clients
if it's available since this function is getting deprecated in the upcoming v0.10 release. This simply provides some future proofing when that original function gets removedexecute_for_clients
call that executes the callback for all clients rather than just the first one likeexecute_for_client
. This is very useful for creating hooks like thepyright
onepylance
hook just in case anyone uses it for any reasonstylua
configuration.