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