aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
blob: 2bbc4c133de89568eb4ed0ab0a35382a897bdb82 (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
36
37
38
39
40
-- 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",
    lazy = false,
    config = function()
      local treesitter = require("nvim-treesitter")

      -- treesitter.setup({})

      -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md
      treesitter.install({
        "bash",
        "c",
        "cpp",
        "html",
        "javascript",
        "lua",
        "make",
        "markdown",
        "markdown_inline",
        "prisma",
        "python",
        "typescript",
        "vim",
        "vim",
        "vimdoc",
        "yaml",
        "zsh",
      })
    end,
  },
}