feat(lsp): add snippet support and refactor completion into Item class

This commit is contained in:
2026-04-17 00:03:03 +02:00
parent 5ecec7cc6c
commit 47f36adc21
9 changed files with 213 additions and 144 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ local Node = {}
Node.__index = Node
---@param item ow.dap.Item
---@param parent ow.dap.hover.Node?
---@param parent? ow.dap.hover.Node
---@param lang string
---@return ow.dap.hover.Node
function Node.new(item, parent, lang)
@@ -68,7 +68,7 @@ function Node:at(n)
return search(self)
end
---@param target ow.dap.hover.Node? if nil, returns index of self
---@param target? ow.dap.hover.Node if nil, returns index of self
---@return integer?
function Node:index_of(target)
target = target or self