mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 07:41:27 +00:00
refactor(lsp): no longer rely on LspDetach for detaching capabilities
This commit is contained in:
@@ -60,17 +60,6 @@ function M:new(bufnr)
|
||||
})
|
||||
self.client_state = {}
|
||||
|
||||
api.nvim_create_autocmd('LspDetach', {
|
||||
group = self.augroup,
|
||||
buffer = bufnr,
|
||||
callback = function(args)
|
||||
self:on_detach(args.data.client_id)
|
||||
if next(self.client_state) == nil then
|
||||
self:destroy()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
Class.active[bufnr] = self
|
||||
return self
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user