Skip to content

Commit 7a86ec5

Browse files
oriori1703fernandomv3
authored andcommitted
Fix treesitter indents
Thanks @JackHerby for the report fixes nvim-lua#1995
1 parent 6757385 commit 7a86ec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ require('lazy').setup({
907907

908908
-- check if treesitter indentation is available for this language, and if so enable it
909909
-- 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
910+
local has_indent_query = vim.treesitter.query.get(language, 'indents') ~= nil
911911

912912
-- enables treesitter based indentation
913913
if has_indent_query then vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end

0 commit comments

Comments
 (0)