mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 00:34:34 +02:00
plugins/origami: update module to v2.0
This commit is contained in:
parent
65725e83f8
commit
0ce4ebf139
2 changed files with 20 additions and 25 deletions
|
@ -8,40 +8,40 @@
|
|||
enable = true;
|
||||
|
||||
settings = {
|
||||
keepFoldsAcrossSessions.__raw = "package.loaded['ufo'] ~= nil";
|
||||
useLspFoldsWithTreesitterFallback = true;
|
||||
pauseFoldsOnSearch = true;
|
||||
foldtextWithLineCount = {
|
||||
enabled.__raw = "package.loaded['ufo'] == nil";
|
||||
template = " %s lines";
|
||||
hlgroupForCount = "Comment";
|
||||
};
|
||||
foldKeymaps = {
|
||||
setup = true;
|
||||
hOnlyOpensOnFirstColumn = false;
|
||||
foldtext = {
|
||||
enabled = true;
|
||||
padding = 3;
|
||||
lineCount = {
|
||||
template = "%d lines";
|
||||
hlgroup = "Comment";
|
||||
};
|
||||
diagnosticsCount = true;
|
||||
gitsignsCount = true;
|
||||
};
|
||||
autoFold = {
|
||||
enabled = false;
|
||||
enabled = true;
|
||||
kinds = [
|
||||
"comment"
|
||||
"imports"
|
||||
];
|
||||
};
|
||||
foldKeymaps = {
|
||||
setup = true;
|
||||
hOnlyOpensOnFirstColumn = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins = {
|
||||
nvim-ufo.enable = true;
|
||||
plugins.origami = {
|
||||
enable = true;
|
||||
|
||||
origami = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
keepFoldsAcrossSessions = true;
|
||||
pauseFoldsOnSearch = true;
|
||||
setupFoldKeymaps = false;
|
||||
};
|
||||
settings = {
|
||||
pauseFoldsOnSearch = true;
|
||||
setupFoldKeymaps = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue