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