mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 23:04:31 +02:00
plugins/languages: move to by-name
This commit is contained in:
parent
9d323f3ec7
commit
b1d0959bc9
71 changed files with 19 additions and 36 deletions
|
@ -1,46 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.markview.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.markview = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
buf_ignore = [ "nofile" ];
|
||||
mode = [
|
||||
"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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue