diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-06-29 21:22:01 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-06-29 21:22:01 +0200 |
| commit | 2a21c3504109ca0426e61bab3da12e7d68682bc2 (patch) | |
| tree | 9e148cc23b38291dc87a78ec726125fb11cf8e5f /nvim/lua/plugins | |
| parent | 175a80a2f8c5dc84163e60b5936ee3db3ba80d79 (diff) | |
| download | dotfiles-2a21c3504109ca0426e61bab3da12e7d68682bc2.tar.gz dotfiles-2a21c3504109ca0426e61bab3da12e7d68682bc2.tar.bz2 dotfiles-2a21c3504109ca0426e61bab3da12e7d68682bc2.zip | |
lazy.nvim: Behandle Optionen und Setup auch bei Treesitter getrennt
Diffstat (limited to 'nvim/lua/plugins')
| -rw-r--r-- | nvim/lua/plugins/treesitter.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index 66cd717..f33a414 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua | |||
| @@ -11,12 +11,12 @@ return { | |||
| 11 | build = ":TSUpdate", | 11 | build = ":TSUpdate", |
| 12 | event = "BufReadPost", | 12 | event = "BufReadPost", |
| 13 | lazy = true, | 13 | lazy = true, |
| 14 | config = function() | 14 | opts = {}, |
| 15 | config = function(_, opts) | ||
| 15 | local treesitter = require("nvim-treesitter") | 16 | local treesitter = require("nvim-treesitter") |
| 16 | local langs = require("config.treesitter").languages | 17 | local langs = require("config.treesitter").languages |
| 17 | 18 | ||
| 18 | -- treesitter.setup({}) | 19 | treesitter.setup(opts) |
| 19 | |||
| 20 | treesitter.install(langs) | 20 | treesitter.install(langs) |
| 21 | end, | 21 | end, |
| 22 | }, | 22 | }, |
