aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
blob: 66cd7171b03df932a4cf30c650c6767a9b4e9238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md

-- Stelle sicher, dass die TreeSitter-CLI installiert ist:
-- MacOS: `brew install tree-sitter-cli`
-- FreeBSD: `doas pkg install tree-sitter-cli`

return {
  {
    "nvim-treesitter/nvim-treesitter",
    branch = "main",
    build = ":TSUpdate",
    event = "BufReadPost",
    lazy = true,
    config = function()
      local treesitter = require("nvim-treesitter")
      local langs = require("config.treesitter").languages

      -- treesitter.setup({})

      treesitter.install(langs)
    end,
  },
}