refactor(lsp): move client code to a regular Lua class

Problem:
  The LSP client code is implemented as a complicated closure-class
  (class defined in a single function).

Solution:
  Move LSP client code to a more conventional Lua class and move to a
  separate file.
This commit is contained in:
Lewis Russell
2024-02-07 17:22:03 +00:00
committed by Lewis Russell
parent cca8a78ea2
commit 59cf827f99
6 changed files with 709 additions and 507 deletions

View File

@@ -895,6 +895,7 @@ do
---@field private _idx_read integer
---@field private _idx_write integer
---@field private _size integer
---@overload fun(self): table?
local Ringbuf = {}
--- Clear all items