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
|
@ -7,12 +7,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# Ensures `nvim-ufo` (if enabled) is loaded before `origami`
|
|
||||||
# Default priority is 1000, mkBefore is 500 and mkAfter is 1500
|
|
||||||
configLocation = lib.mkOrder 1100 "extraConfigLua";
|
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
keepFoldsAcrossSessions = true;
|
|
||||||
pauseFoldsOnSearch = true;
|
pauseFoldsOnSearch = true;
|
||||||
setupFoldKeymaps = false;
|
setupFoldKeymaps = false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,40 +8,40 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
keepFoldsAcrossSessions.__raw = "package.loaded['ufo'] ~= nil";
|
useLspFoldsWithTreesitterFallback = true;
|
||||||
pauseFoldsOnSearch = true;
|
pauseFoldsOnSearch = true;
|
||||||
foldtextWithLineCount = {
|
foldtext = {
|
||||||
enabled.__raw = "package.loaded['ufo'] == nil";
|
enabled = true;
|
||||||
template = " %s lines";
|
padding = 3;
|
||||||
hlgroupForCount = "Comment";
|
lineCount = {
|
||||||
};
|
template = "%d lines";
|
||||||
foldKeymaps = {
|
hlgroup = "Comment";
|
||||||
setup = true;
|
};
|
||||||
hOnlyOpensOnFirstColumn = false;
|
diagnosticsCount = true;
|
||||||
|
gitsignsCount = true;
|
||||||
};
|
};
|
||||||
autoFold = {
|
autoFold = {
|
||||||
enabled = false;
|
enabled = true;
|
||||||
kinds = [
|
kinds = [
|
||||||
"comment"
|
"comment"
|
||||||
"imports"
|
"imports"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
foldKeymaps = {
|
||||||
|
setup = true;
|
||||||
|
hOnlyOpensOnFirstColumn = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
plugins = {
|
plugins.origami = {
|
||||||
nvim-ufo.enable = true;
|
enable = true;
|
||||||
|
|
||||||
origami = {
|
settings = {
|
||||||
enable = true;
|
pauseFoldsOnSearch = true;
|
||||||
|
setupFoldKeymaps = false;
|
||||||
settings = {
|
|
||||||
keepFoldsAcrossSessions = true;
|
|
||||||
pauseFoldsOnSearch = true;
|
|
||||||
setupFoldKeymaps = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue