feat: start treesitter if parser exists
This commit is contained in:
parent
8c6fda9abb
commit
37b3c829f9
|
@ -24,5 +24,12 @@ now_if_args(function()
|
||||||
"toml",
|
"toml",
|
||||||
"tsx",
|
"tsx",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
"lua",
|
||||||
|
"luadoc",
|
||||||
|
"gitcommit",
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
callback = function(args) pcall(vim.treesitter.start, args.buf) end,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue