Vendored from upstream, pinned by commit (see debian/extra/README.source): - gitstatus, gitopen, fontconfig, open_ext, select_colorscheme, smoothcaret, nerdicons (font mapping patched to DATADIR, Ships the Symbols Nerd Font Mono TTF, SIL OFL 1.1) - lite-xl-lsp (complete LSP client; idle until a language server is configured) plus the lite-xl-widgets library it requires - 104 language syntax plugins (none duplicate the nine bundled in core) settings GUI left out upstream is broken: it requires a libraries.widget.fonts widget that does not exist in lite-xl-widgets at any revision. Co-developed-with: ZCode (Z.ai)
33 lines
692 B
Lua
33 lines
692 B
Lua
---@type core.doc
|
|
local Doc = require "core.doc"
|
|
|
|
---A readonly core.doc.
|
|
---@class lsp.helpdoc : core.doc
|
|
local HelpDoc = Doc:extend()
|
|
|
|
---Set the help text.
|
|
---@param text string
|
|
function HelpDoc:set_text(text)
|
|
self.lines = {}
|
|
local i = 1
|
|
for line in text:gmatch("([^\n]*)\n?") do
|
|
if line:byte(-1) == 13 then
|
|
line = line:sub(1, -2)
|
|
self.crlf = true
|
|
end
|
|
table.insert(self.lines, line .. "\n")
|
|
self.highlighter.lines[i] = false
|
|
i = i + 1
|
|
end
|
|
self:reset_syntax()
|
|
end
|
|
|
|
function HelpDoc:raw_insert(...) end
|
|
function HelpDoc:raw_remove(...) end
|
|
function HelpDoc:load(...) end
|
|
function HelpDoc:reload() end
|
|
function HelpDoc:save(...) end
|
|
|
|
|
|
return HelpDoc
|