plugins/markview: v25 migration

Co-Authored-By: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Austin Horstman 2025-02-21 08:37:51 -06:00 committed by Gaétan Lepage
parent ade9e131cd
commit 3feb4b4b4b
2 changed files with 78 additions and 93 deletions

View file

@ -8,37 +8,20 @@
enable = true;
settings = {
buf_ignore = [ "nofile" ];
modes = [
"n"
"no"
];
hybrid_modes = [ ];
callback = {
on_enable = # Lua
''
function(buf, win)
vim.wo[window].conceallevel = 2;
vim.wo[window].concealcursor = "nc";
end
'';
on_disable = # Lua
''
function(buf, win)
vim.wo[window].conceallevel = 0;
vim.wo[window].concealcursor = "";
end
'';
on_mode_change = # Lua
''
function(buf, win, mode)
if vim.list_contains(markview.configuration.modes, mode) then
vim.wo[window].conceallevel = 2;
else
vim.wo[window].conceallevel = 0;
end
end
'';
preview = {
enable = true;
buf_ignore = [ ];
icon_provider = "internal";
filetypes = [ ];
hybrid_modes = [ ];
ignore_previews = [ ];
max_buf_lines = 1000;
modes = [ ];
render_distance = [
200
200
];
splitview_winopts = { };
};
};
};