fix: more lsp info comment and fix backend opts error

This commit is contained in:
JuanZoran
2023-03-14 22:30:25 +08:00
parent dab105b27f
commit f47abd1691
15 changed files with 102 additions and 50 deletions

View File

@@ -92,12 +92,12 @@ end
---Add highlight to buffer
---@param linenr number line number should be set[one index]
---@param col_start number column start [zero index]
---@param col_end number column end
---@param hl_group string highlight group
---@param col_start? number column start [zero index]
---@param col_end? number column end
---@param ns number? highlight namespace
function buffer:add_highlight(linenr, hl_group, col_start, col_end, ns)
linenr = linenr and linenr - 1 or -1
linenr = linenr - 1 or -1
col_start = col_start or 0
api.nvim_buf_add_highlight(self.bufnr, ns or -1, hl_group, linenr, col_start, col_end or -1)
end