From 37b3c829f929bcdeb3bf0b541aa53677e502eba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Tue, 7 Oct 2025 23:15:51 +0200 Subject: [PATCH] feat: start treesitter if parser exists --- lua/plugins/treesitter.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 5bbce11..6e27b0f 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -24,5 +24,12 @@ now_if_args(function() "toml", "tsx", "yaml", + "lua", + "luadoc", + "gitcommit", + }) + + vim.api.nvim_create_autocmd("FileType", { + callback = function(args) pcall(vim.treesitter.start, args.buf) end, }) end)