HallerPatrick / py_lsp.nvim

Lsp Plugin for working with Python virtual environments
100 stars 12 forks source link

Fix missing reference to stop_client() in init.lua #25

Closed cnrrobertson closed 1 year ago

cnrrobertson commented 1 year ago

I've been getting an error about a missing reference for stop_client() in the Telescope picker. I think it was a simple typo, so I've fixed it. For my purposes, the fix seems to work well.

However, there is a M.stop_client() in init.lua which from what I can tell looks to stop all clients attached to a buffer. It isn't used in all of the functions, so I stuck with the simple vim.lsp.stop_client().

HallerPatrick commented 1 year ago

Yes that is my fault. I moved the picker logic to its own file and failed to adjust the imports. I will stick with your call to vim.lsp.stop_client for now.

Thank you for the report :)