From e8bd36899b88285c94c850f0dfce0754d94cfe24 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 22 Dec 2025 17:37:13 +0100 Subject: Neovim: Neue Konfiguration --- nvim/lua/plugins/treesitter.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nvim/lua/plugins/treesitter.lua (limited to 'nvim/lua/plugins/treesitter.lua') diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..edcaff2 --- /dev/null +++ b/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,29 @@ +-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md + +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({ + "c", + "cpp", + "html", + "python", + "vim", + "vimdoc", + "javascript", + "lua", + "typescript", + "vim", + }) + end, + }, +} -- cgit v1.3