Skip to content

Commit

Permalink
fix(overrides): noice was leaking extmarks for stylize_markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 24, 2023
1 parent f5178da commit 9b148a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/noice/lsp/override.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function M.setup()

if Config.options.lsp.override["vim.lsp.util.stylize_markdown"] then
vim.lsp.util.stylize_markdown = function(buf, contents, _opts)
vim.api.nvim_buf_clear_namespace(buf, Config.ns, 0, -1)
local text = table.concat(contents, "\n")
local message = Message("lsp")
Markdown.format(message, text)
Expand Down

0 comments on commit 9b148a1

Please sign in to comment.