mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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
|
||||
];
|
||||
|
||||
opts = mkIf cfg.folding (mkDefault {
|
||||
foldmethod = "expr";
|
||||
foldexpr = "nvim_treesitter#foldexpr()";
|
||||
});
|
||||
opts = mkIf cfg.folding {
|
||||
foldmethod = mkDefault "expr";
|
||||
foldexpr = mkDefault "nvim_treesitter#foldexpr()";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue