mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/treesitter: fix folding
opts getting wiped out by setting entire set as default instead of each attribute
This commit is contained in:
parent
1385953299
commit
89d74cdce1
1 changed files with 4 additions and 4 deletions
|
@ -319,9 +319,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
cfg.treesitterPackage
|
cfg.treesitterPackage
|
||||||
];
|
];
|
||||||
|
|
||||||
opts = mkIf cfg.folding (mkDefault {
|
opts = mkIf cfg.folding {
|
||||||
foldmethod = "expr";
|
foldmethod = mkDefault "expr";
|
||||||
foldexpr = "nvim_treesitter#foldexpr()";
|
foldexpr = mkDefault "nvim_treesitter#foldexpr()";
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue