summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/_treesitter/init.lua
blob: b215e30d3c2af51de2f7b681cfa750b0aa253e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
require'nvim-treesitter.configs'.setup {
    ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
    ignore_install = O.treesitter.ignore_install,
    highlight = {
        enable = O.treesitter.highlight.enabled -- false will disable the whole extension
    },
    -- indent = {enable = true, disable = {"python", "html", "javascript"}},
    -- TODO seems to be broken
    indent = {enable = {"javascriptreact"}},
    autotag = {enable = true},
}