Compare commits

..

5 Commits

View File

@ -153,7 +153,7 @@ vim.api.nvim_create_autocmd("FileType", {
local has_treesitter, treesitter = pcall(require, "nvim-treesitter")
if has_treesitter then
local language = vim.treesitter.language.get_lang(event.match)
treesitter.install(language):await(function(a)
treesitter.install(language):await(function()
if pcall(vim.treesitter.start) then
-- Use Treesitter indentation and folds.
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"