AutoYADM commit: 2024-11-11 16:45:02

This commit is contained in:
Daniel Fichtinger 2024-11-11 16:45:02 -05:00
parent 703301211c
commit 942d1794b4

View file

@ -20,14 +20,14 @@ return {
-- map = vim.keymap.set, -- map = vim.keymap.set,
which_key = true, which_key = true,
get = function() get = function()
return not vim.g.mkdp_preview_options.disable_sync_scroll return vim.g.mkdp_preview_options.disable_sync_scroll == 0
end, end,
notify = true, notify = true,
set = function(state) set = function(state)
if state then if state then
vim.g.mkdp_preview_options.disable_sync_scroll = 1 vim.cmd("let g:mkdp_preview_options['disable_sync_scroll'] = 0")
else else
vim.g.mkdp_preview_options.disable_sync_scroll = 0 vim.cmd("let g:mkdp_preview_options['disable_sync_scroll'] = 1")
end end
end, end,
}) })