<commit_before>local max_lines = 1000

require('nvim-treesitter.configs').setup {
  -- One of "all", "maintained" (parsers with maintainers), or a list of languages
  ensure_installed = "maintained",
  sync_install = false,
  ignore_install = {},

  highlight = {
    enable = true,

    disable = function(lang, bufnr)
      return vim.api.nvim_buf_line_count(bufnr) > max_lines
    end,

    -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
    -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
    -- Using this option may slow down your editor, and you may see some duplicate highlights.
    -- Instead of true it can also be a list of languages
    additional_vim_regex_highlighting = false,
  },

  indent = {
    enable = true,

    disable = function(lang, bufnr)
      return vim.api.nvim_buf_line_count(bufnr) > max_lines or lang ~= "prisma"
    end,
  },

  incremental_selection = {
    enable = true,<commit_msg>nvim: fix treesitter config after upstream changes<commit_after>local max_lines = 1000

require('nvim-treesitter.configs').setup {
  -- One of "all", "maintained" (parsers with maintainers), or a list of languages
  ensure_installed = {
    'bash',
    'c', 'cpp', 'rust',
    'javascript', 'typescript',
    'json', 'toml',
    'vim', 'lua',
  },
  sync_install = false,
  ignore_install = {},

  highlight = {
    enable = true,

    disable = function(lang, bufnr)
      return vim.api.nvim_buf_line_count(bufnr) > max_lines
    end,

    -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
    -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
    -- Using this option may slow down your editor, and you may see some duplicate highlights.
    -- Instead of true it can also be a list of languages
    additional_vim_regex_highlighting = false,
  },

  indent = {
    enable = true,

    disable = function(lang, bufnr)
      return vim.api.nvim_buf_line_count(bufnr) > max_lines or lang ~= "prisma"
    end,
  },

  incremental_selection = {
    enable = true,
{'fraction_non_alphanumeric': 0.1052880075542965, 'fraction_numerical': 0.003777148253068933, 'mean_word_length': 3.138671875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '337873', 'n_tokens_mistral': 694, 'n_tokens_neox': 657, 'n_words': 220}