We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f90f52 commit 9dde93aCopy full SHA for 9dde93a
lua/render-markdown/util.lua
@@ -1,3 +1,5 @@
1
+local logger = require('render-markdown.logger')
2
+
3
local M = {}
4
5
---@param win integer
@@ -15,8 +17,11 @@ end
15
17
---@param buf integer
16
18
---@param value integer
19
M.set_conceal = function(buf, value)
- local win = M.buf_to_win(buf)
- vim.api.nvim_set_option_value('conceallevel', value, { scope = 'local', win = win })
20
+ local name = 'conceallevel'
21
+ local opts = { scope = 'local', win = M.buf_to_win(buf) }
22
+ local before = vim.api.nvim_get_option_value(name, opts)
23
+ vim.api.nvim_set_option_value(name, value, opts)
24
+ logger.debug({ option = name, opts = opts, before = before, after = value })
25
end
26
27
0 commit comments