Compare commits
5 Commits
14bf34bb2a
...
127ce5a00f
| Author | SHA1 | Date | |
|---|---|---|---|
|
127ce5a00f
|
|||
|
492079a64f
|
|||
|
5cfe6fca6b
|
|||
|
c1ee52019c
|
|||
|
c248827792
|
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user