disable treesitter on riscv

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-19 16:05:05 +01:00
parent a9442cf750
commit fddc2cdca7
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,7 +1,15 @@
{pkgs, ...}: {
output.plugins = with pkgs.vimPlugins; [pkgs.vimPlugins.nvim-treesitter.withAllGrammars];
plugin.setup."nvim-treesitter.configs" = {
highlight.enable = true;
highlight.disable = ["bash"];
};
output.plugins =
if pkgs.system != "riscv64-linux"
then with pkgs.vimPlugins; [pkgs.vimPlugins.nvim-treesitter.withAllGrammars]
else [];
plugin.setup =
if pkgs.system != "riscv64-linux"
then {
"nvim-treesitter.configs" = {
highlight.enable = true;
highlight.disable = ["bash"];
};
}
else {};
}