We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42cb142 commit fee72f2Copy full SHA for fee72f2
1 file changed
init.lua
@@ -2104,7 +2104,7 @@ require('lazy').setup({
2104
2105
-- check if treesitter indentation is available for this language, and if so enable it
2106
-- in case there is no indent query, the indentexpr will fallback to the vim's built in one
2107
- local has_indent_query = vim.treesitter.query.get(language, 'indent') ~= nil
+ local has_indent_query = vim.treesitter.query.get(language, 'indents') ~= nil
2108
2109
-- enables treesitter based indentation
2110
if has_indent_query then vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end
0 commit comments