aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/nixvim/plugins/treesitter/default.nix
blob: ab5de9632dcee4cadddba9b150050ad1e3e25c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Syntax highlighting and parsing
{ config, lib, ... }:
let
  cfg = config.development.nixvim;
in
{
  config.programs.nixvim.plugins.treesitter = lib.mkIf cfg.enable {
    enable = true;
    folding = {
      enable = true;
    };
    settings = {
      highlight = {
        enable = true;
      };
      indent = {
        enable = true;
      };
    };
  };
}