aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
blob: 0c2383cc368345704f1ab31d1a53874999054660 (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
28
29
30
31
32
33
return {
  {
    "nvim-treesitter/nvim-treesitter",
    branch = 'master',
    lazy = false,
    build = ":TSUpdate",
    config = function()
      local config = require("nvim-treesitter.configs")
      config.setup({
        ensure_installed = {
          "bash",
          "lua",
          "javascript",
          "c",
          "cpp",
          "json",
          "go",
          "markdown",
          "meson",
          "make",
          "cmake",
          "python",
          "rust",
          "yaml",
          "toml",
          "ron",
        },
        highlight = { enable = true },
        indent = { enable = true },
      })
    end
  }
}