feat(lsp.util): deprecate vim.lsp.util.stylize_markdown

It's not used anywhere.
This commit is contained in:
Lewis Russell
2025-04-02 11:00:50 +01:00
committed by Lewis Russell
parent 379c37fa0b
commit a8edf6e445
4 changed files with 5 additions and 28 deletions

View File

@@ -1079,6 +1079,7 @@ local function get_markdown_fences()
return fences
end
--- @deprecated
--- Converts markdown into syntax highlighted regions by stripping the code
--- blocks and converting them into highlighted code.
--- This will by default insert a blank line separator after those code block
@@ -1099,6 +1100,7 @@ end
--- - separator insert separator after code block
---@return table stripped content
function M.stylize_markdown(bufnr, contents, opts)
vim.deprecate('vim.lsp.util.stylize_markdown', nil, '0.14')
validate('contents', contents, 'table')
validate('opts', opts, 'table', true)
opts = opts or {}