plugins/treesitter: fix folding

opts getting wiped out by setting entire set as default instead of each
attribute
This commit is contained in:
Austin Horstman 2024-07-12 12:13:27 -05:00
parent 1385953299
commit 89d74cdce1
No known key found for this signature in database

View file

@ -319,9 +319,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
cfg.treesitterPackage
];
opts = mkIf cfg.folding (mkDefault {
foldmethod = "expr";
foldexpr = "nvim_treesitter#foldexpr()";
});
opts = mkIf cfg.folding {
foldmethod = mkDefault "expr";
foldexpr = mkDefault "nvim_treesitter#foldexpr()";
};
};
}