Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vim.lsp.status() #23

Open
aktau opened this issue Jun 12, 2023 · 0 comments
Open

Use vim.lsp.status() #23

aktau opened this issue Jun 12, 2023 · 0 comments

Comments

@aktau
Copy link

aktau commented Jun 12, 2023

Saw this flying by, just merged into master: neovim/neovim#20327.

Not sure if this is useful I see the plugin now overrides the progress handler, which I think might impede other plugins from using vim.lsp.status() as lualine-lsp-progress does not call the original handler:

vim.lsp.handlers["$/progress"] = function(...)
local arg = select(4, ...)
if type(arg) ~= 'number' then
self.progress_callback(...)
else
self.progress_callback(
select(1, ...), -- err
select(3, ...), -- msg
{
client_id = select(4, ...)
}
)
end
end
.

The cleanest is probably to somehow use vim.lsp.status() instead of overriding the handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant