Fix treesitter indents

Thanks @jackHerby for the report
fixes #1995
This commit is contained in:
orip
2026-04-15 03:44:13 +03:00
parent c0cc054155
commit f27810d1bd

View File

@@ -893,7 +893,7 @@ require('lazy').setup({
-- check if treesitter indentation is available for this language, and if so enable it
-- in case there is no indent query, the indentexpr will fallback to the vim's built in one
local has_indent_query = vim.treesitter.query.get(language, 'indent') ~= nil
local has_indent_query = vim.treesitter.query.get(language, 'indents') ~= nil
-- enables treesitter based indentation
if has_indent_query then vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end