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