diff options
Diffstat (limited to 'nvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | nvim/lua/plugins/treesitter.lua | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 954e05f..faa850a 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md | 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md |
| 2 | 2 | ||
| 3 | -- Stelle sicher, dass die TreeSitter-CLI installiert ist: | 3 | -- Stelle sicher, dass die TreeSitter-CLI installiert ist: |
| 4 | -- MacOS: `brew install tree-sitter-cli` | 4 | -- MacOS: `brew install tree-sitter-cli` |
| 5 | -- FreeBSD: `doas pkg install tree-sitter-cli` | 5 | -- FreeBSD: `doas pkg install tree-sitter-cli` |
| 6 | 6 | ||
| 7 | return { | 7 | return { |
| 8 | { | 8 | { |
| 9 | "nvim-treesitter/nvim-treesitter", | 9 | "nvim-treesitter/nvim-treesitter", |
| 10 | branch = "main", | 10 | branch = "main", |
| 11 | build = ":TSUpdate", | 11 | build = ":TSUpdate", |
| 12 | lazy = false, | 12 | lazy = false, |
| 13 | opts = {}, | 13 | opts = {}, |
| 14 | config = function(_, opts) | 14 | config = function(_, opts) |
| 15 | local treesitter = require("nvim-treesitter") | 15 | local treesitter = require("nvim-treesitter") |
| 16 | local langs = require("config.treesitter").languages | 16 | local langs = require("config.treesitter").languages |
| 17 | 17 | ||
| 18 | treesitter.setup(opts) | 18 | treesitter.setup(opts) |
| 19 | treesitter.install(langs) | 19 | treesitter.install(langs) |
| 20 | end, | 20 | end, |
| 21 | }, | 21 | }, |
| 22 | } | 22 | } |
