Merge upstream: Fix treesitter indents

This commit is contained in:
Damjan 9000 2026-04-19 00:54:07 +02:00
commit bd8189ad2c

View File

@ -27,7 +27,7 @@ return {
-- 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