nixos-config/config/programs/vim/modules/visual/treesitter.nix

15 lines
369 B
Nix

{pkgs, ...}: {
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 {};
}