feat: start treesitter if parser exists

This commit is contained in:
Matej Janezic 2025-10-07 23:15:51 +02:00
parent 8c6fda9abb
commit 37b3c829f9
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 7 additions and 0 deletions

View File

@ -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)