summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
blob: 6ac96af685129c72615bf5b39cb569594fbc5418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
return {
    'nvim-treesitter/nvim-treesitter',
    name = 'treesitter',
    build = ':TSUpdate',
    config = function()
        require('nvim-treesitter.configs').setup({
            ensure_installed = {
                "vimdoc", "c", "lua", "cpp",
                "bash", "css", "glsl", "nasm", "haskell",
                "hyprlang", "zig",
            },
            sync_install = false,

            auto_install = true,

            indent = {
                enable = true
            },

            highlight = {
                enable = true,

                additional_vim_regex_highlighting = { "markdown" },
            },
        })
    end
}