summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
blob: b75b2b3a536a52ffb41c0d798307765e37a23150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require'nvim-treesitter.configs'.setup {
  ensure_installed = { "c" },
  sync_install = false,
  auto_install = true,

  highlight = {
    enable = true,

    -- 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,
  },
}