From 8c8f1ea22812796e23932a25a786d5491329606a Mon Sep 17 00:00:00 2001 From: pablu Date: Wed, 22 Jul 2026 14:43:26 +0200 Subject: updates --- dot_config/nvim/lua/plugins/treesitter.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dot_config/nvim') diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index 1df588a..5198eaf 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -5,6 +5,14 @@ return { build = ":TSUpdate", config = function() local treesitter = require("nvim-treesitter") - treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", "lua" }) + treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", + "lua" }) + + vim.api.nvim_create_autocmd("FileType", { + group = vim.api.nvim_create_augroup("treesitter-start", { clear = true }), + callback = function() + pcall(vim.treesitter.start) + end + }) end } -- cgit 1.3.1