summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
blob: 17a498bc1ea7758d86d69741a9e6655ed5789f56 (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
34
35
return {
  {
    "nvim-treesitter/nvim-treesitter",
    dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" },
    event = { "BufReadPre", "BufNewFile" },
    config = function()
      require("nvim-treesitter.configs").setup({
        auto_install = true,
        ensure_installed = {
          "bash",
          "clojure",
          "css",
          "html",
          "ini",
          "javascript",
          "json",
          "kotlin",
          "lua",
          "markdown",
          "python",
          "qmljs",
          "regex",
          "rust",
          "scss",
          "sql",
          "toml",
          "tsx",
          "typescript",
          "yaml",
        },
        highlight = { enable = true },
      })
    end,
  },
}