linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
379 stars 40 forks source link

General hook cleanup #85

Closed mehalter closed 6 months ago

mehalter commented 6 months ago

This PR does a few general purpose cleanups:

  1. 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
  2. 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
  3. Adds back in the pylance hook just in case anyone uses it for any reason
  4. Formats the Lua code in the README to follow the provided stylua configuration.