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