mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/markview: v25 migration
Co-Authored-By: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
parent
ade9e131cd
commit
3feb4b4b4b
2 changed files with 78 additions and 93 deletions
|
@ -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 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue