aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2025-04-02 11:00:50 +0100
committerLewis Russell <me@lewisr.dev>2025-04-04 14:34:33 +0100
commita8edf6e4459d7422c1a96e4f33e350090902dc61 (patch)
tree12332948dea7f496909f76d576862a74db6587f1 /runtime/lua/vim/lsp/util.lua
parent379c37fa0b1be09cd46dd299638d94b9727fbaea (diff)
downloadrneovim-a8edf6e4459d7422c1a96e4f33e350090902dc61.tar.gz
rneovim-a8edf6e4459d7422c1a96e4f33e350090902dc61.tar.bz2
rneovim-a8edf6e4459d7422c1a96e4f33e350090902dc61.zip
feat(lsp.util): deprecate vim.lsp.util.stylize_markdown
It's not used anywhere.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index e18ff39b63..49f2126e32 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -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 {}